diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-18 02:51:18 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-23 23:00:23 +0800 |
commit | 3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64 (patch) | |
tree | 3afb70f53b247b83a0d0d54fe1304b0f2c9bd9bf /packages/contracts/src/2.0.0 | |
parent | 1f0e819756ea247e592a8a05c53561894c8ca87a (diff) | |
download | dexon-0x-contracts-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.gz dexon-0x-contracts-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.zst dexon-0x-contracts-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.zip |
Use transferFrom instead of safeTransferFrom
Diffstat (limited to 'packages/contracts/src/2.0.0')
-rw-r--r-- | packages/contracts/src/2.0.0/forwarder/MixinAssets.sol | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/contracts/src/2.0.0/forwarder/MixinAssets.sol b/packages/contracts/src/2.0.0/forwarder/MixinAssets.sol index cd150764e..44809ed85 100644 --- a/packages/contracts/src/2.0.0/forwarder/MixinAssets.sol +++ b/packages/contracts/src/2.0.0/forwarder/MixinAssets.sol @@ -163,15 +163,12 @@ contract MixinAssets is // Decode asset data. address token = assetData.readAddress(16); uint256 tokenId = assetData.readUint256(36); - bytes memory receiverData = assetData.readBytesWithLength(100); // Perform transfer. - // TODO: Do we want to use `transferFrom` here? - IERC721Token(token).safeTransferFrom( + IERC721Token(token).transferFrom( address(this), msg.sender, - tokenId, - receiverData + tokenId ); } } |