From d2995c1f19167d8545f76b9cde9e9571df2816aa Mon Sep 17 00:00:00 2001 From: gcranju <134275268+gcranju@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:21:56 +0545 Subject: [PATCH] fix: network address validation fixed (#212) --- contracts/evm/library/btp2/utils/NetworkAddress.sol | 1 - 1 file changed, 1 deletion(-) diff --git a/contracts/evm/library/btp2/utils/NetworkAddress.sol b/contracts/evm/library/btp2/utils/NetworkAddress.sol index 3a5f9f61..4763d32f 100644 --- a/contracts/evm/library/btp2/utils/NetworkAddress.sol +++ b/contracts/evm/library/btp2/utils/NetworkAddress.sol @@ -49,7 +49,6 @@ library NetworkAddress { uint256 i = 0; for (; i < _bytes.length; i++) { if (_bytes[i] == DELIMITER[0]) { - require(i > 6 && i < (_bytes.length -1), REVERT); return i; } }