We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b0d9b commit 4a50042Copy full SHA for 4a50042
contracts/libraries/AddressConverters.sol
@@ -8,7 +8,7 @@ library Bytes32ToAddress {
8
error InvalidBytes32();
9
10
function toAddress(bytes32 _bytes32) internal pure returns (address) {
11
- if (uint256(_bytes32) >> 192 != 0) {
+ if (uint256(_bytes32) >> 160 != 0) {
12
revert InvalidBytes32();
13
}
14
return address(uint160(uint256(_bytes32)));
0 commit comments