From 45bf248ca0809da83ddd5521f7c9b18367a189aa Mon Sep 17 00:00:00 2001 From: Csongor Kiss Date: Mon, 15 Jan 2024 13:59:13 +0000 Subject: [PATCH] libraries/BytesParsing: don't check bounds in asAddressUnchecked --- 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 7c644f6..5e04e1f 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); }