Skip to content

Commit

Permalink
libraries/BytesParsing: don't check bounds in asAddressUnchecked (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsongor authored Jan 22, 2024
1 parent e19053c commit 2b7db51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/BytesParsing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2b7db51

Please sign in to comment.