Skip to content

Commit

Permalink
libraries/BytesParsing: don't check bounds in asAddressUnchecked
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsongor authored and nonergodic committed Jan 22, 2024
1 parent 22d076d commit ac04d08
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 ac04d08

Please sign in to comment.