Skip to content

Commit 2b7db51

Browse files
authored
libraries/BytesParsing: don't check bounds in asAddressUnchecked (#26)
1 parent e19053c commit 2b7db51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/BytesParsing.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ library BytesParsing {
8080
bytes memory encoded,
8181
uint offset
8282
) internal pure returns (address, uint) {
83-
(uint160 ret, uint nextOffset) = asUint160(encoded, offset);
83+
(uint160 ret, uint nextOffset) = asUint160Unchecked(encoded, offset);
8484
return (address(ret), nextOffset);
8585
}
8686

0 commit comments

Comments
 (0)