Skip to content

Commit 4a50042

Browse files
authored
fix(evm): L03 - Address incorrect Right Shift in AddressConverters Lib (#828)
Signed-off-by: Chris Maree <christopher.maree@gmail.com>
1 parent 38b0d9b commit 4a50042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/libraries/AddressConverters.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ library Bytes32ToAddress {
88
error InvalidBytes32();
99

1010
function toAddress(bytes32 _bytes32) internal pure returns (address) {
11-
if (uint256(_bytes32) >> 192 != 0) {
11+
if (uint256(_bytes32) >> 160 != 0) {
1212
revert InvalidBytes32();
1313
}
1414
return address(uint160(uint256(_bytes32)));

0 commit comments

Comments
 (0)