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 committed Jan 15, 2024
1 parent 374a016 commit 45bf248
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 45bf248

Please sign in to comment.