aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-06-23 07:35:50 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-06-23 07:35:50 +0800
commit7fcd34eb3656a49eaac684ee3cb1b7d55d9e15e6 (patch)
treea94d8d2ce87c323accfd47a802f43a6ba99c170e /packages
parent2d8e9eda56f1455d5d5de61924c9c061e64756f5 (diff)
downloaddexon-0x-contracts-7fcd34eb3656a49eaac684ee3cb1b7d55d9e15e6.tar.gz
dexon-0x-contracts-7fcd34eb3656a49eaac684ee3cb1b7d55d9e15e6.tar.zst
dexon-0x-contracts-7fcd34eb3656a49eaac684ee3cb1b7d55d9e15e6.zip
Apply mask to address to zero-out unused bytes.
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/src/contracts/current/protocol/Exchange/MixinTransactions.sol2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinTransactions.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinTransactions.sol
index 86f7c7b72..20a4a12df 100644
--- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinTransactions.sol
+++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinTransactions.sol
@@ -66,7 +66,7 @@ contract MixinTransactions is
let memPtr := mload(64)
mstore(memPtr, schemaHash)
mstore(add(memPtr, 32), salt)
- mstore(add(memPtr, 64), signerAddress)
+ mstore(add(memPtr, 64), and(signerAddress, 0xffffffffffffffffffffffffffffffffffffffff))
mstore(add(memPtr, 96), dataHash)
result := keccak256(memPtr, 128)
}