Apply and mask to assembly address instruction in exchange/.../ReentrantERC20Token.sol
This commit is contained in:
committed by
Amir Bandeali
parent
4f73008d95
commit
db4c29a73c
@@ -322,7 +322,7 @@ contract ReentrantERC20Token is
|
||||
// ERC20 asset proxy: 0xf47261b.
|
||||
mstore(add(assetData, 32), 0xf47261b000000000000000000000000000000000000000000000000000000000)
|
||||
// Then we encode parameter 1, the token address.
|
||||
mstore(add(assetData, 36), address)
|
||||
mstore(add(assetData, 36), and(address, 0x000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
|
||||
}
|
||||
return assetData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user