diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-06-26 10:53:46 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-27 03:23:19 +0800 |
commit | 873ec898d82f24ed4d9c46ce3f62b52bab31ff90 (patch) | |
tree | 583ddd786b8edc396bf949b9a42f27ae929716a1 | |
parent | 97a70d14a333ff1fc8e9f35cb7acd34075c1098e (diff) | |
download | dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar.gz dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar.bz2 dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar.lz dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar.xz dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.tar.zst dexon-sol-tools-873ec898d82f24ed4d9c46ce3f62b52bab31ff90.zip |
Updated offset of receiverData length to reflect new assetData encoding.
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol b/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol index 2b425b15e..561c2a625 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol @@ -152,7 +152,7 @@ contract MixinERC721Transfer is // 2. The offset to `receiverData` is the length // of the Params Area (128 bytes). - let length := calldataload(add(offset, 104)) + let length := calldataload(add(offset, 136)) let token := calldataload(add(offset, 40)) // Round length up to multiple of 32 @@ -168,7 +168,7 @@ contract MixinERC721Transfer is mstore(add(cdStart, 100), 128) // receiverData (including length) - calldatacopy(add(cdStart, 132), add(offset, 104), add(length, 32)) + calldatacopy(add(cdStart, 132), add(offset, 136), add(length, 32)) /////// Call `token.safeTransferFrom` using the calldata /////// let success := call( |