diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-09 02:50:18 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-09 06:44:43 +0800 |
commit | d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d (patch) | |
tree | 91d6f28fc65f51dd95396533bfc88d5c6cefdfb9 /packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol | |
parent | 9a5d7b76352e804d532e7a6d08d83f7b0ea7bd7f (diff) | |
download | dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar.gz dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar.bz2 dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar.lz dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar.xz dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.tar.zst dexon-0x-contracts-d10e2652aeb3bde01fd729ef21b3eb5cafcfb27d.zip |
Revert incrementing memory ptr in dispatchTransferFrom
Diffstat (limited to 'packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol')
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol index f047342b3..4aad37709 100644 --- a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol +++ b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibAbiEncoder.sol @@ -204,11 +204,10 @@ contract LibAbiEncoder { } // Set length of calldata - let calldataLen := sub(dataAreaEnd, add(fillOrderCalldata, 0x20)) - mstore(fillOrderCalldata, calldataLen) + mstore(fillOrderCalldata, sub(dataAreaEnd, add(fillOrderCalldata, 0x20))) // Increment free memory pointer - mstore(0x40, add(fillOrderCalldata, add(calldataLen, 0x20))) + mstore(0x40, dataAreaEnd) } return fillOrderCalldata; |