aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-07-18 02:51:18 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-07-23 23:00:23 +0800
commit3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64 (patch)
tree3afb70f53b247b83a0d0d54fe1304b0f2c9bd9bf /packages/contracts/src
parent1f0e819756ea247e592a8a05c53561894c8ca87a (diff)
downloaddexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.gz
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.bz2
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.lz
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.xz
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.tar.zst
dexon-sol-tools-3506ec1caa2a6c7ee2d68970553ca53d8ceb5c64.zip
Use transferFrom instead of safeTransferFrom
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/2.0.0/forwarder/MixinAssets.sol7
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
);
}
}