From 2b7db51f99b49eda99b44f4a044e751cb0b2e8ea Mon Sep 17 00:00:00 2001 From: Csongor Kiss Date: Mon, 22 Jan 2024 11:48:32 +0000 Subject: [PATCH] libraries/BytesParsing: don't check bounds in asAddressUnchecked (#26) --- src/libraries/BytesParsing.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/BytesParsing.sol b/src/libraries/BytesParsing.sol index a356cdf..765c8c7 100644 --- a/src/libraries/BytesParsing.sol +++ b/src/libraries/BytesParsing.sol @@ -80,7 +80,7 @@ library BytesParsing { bytes memory encoded, uint offset ) internal pure returns (address, uint) { - (uint160 ret, uint nextOffset) = asUint160(encoded, offset); + (uint160 ret, uint nextOffset) = asUint160Unchecked(encoded, offset); return (address(ret), nextOffset); }