diff options
author | Jacob Evans <jacob@dekz.net> | 2018-06-20 08:01:41 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-06-20 08:01:41 +0800 |
commit | 25fa29e6e14e3e2d5551b868ee4c433ae9708e60 (patch) | |
tree | 6154b7b6a8205488bf633986e1517188759ced11 /packages/contracts/src | |
parent | bddc47f9b2e5d889e4c172f3d8ed1eb4b61faf1b (diff) | |
download | dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar.gz dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar.bz2 dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar.lz dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar.xz dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.tar.zst dexon-sol-tools-25fa29e6e14e3e2d5551b868ee4c433ae9708e60.zip |
Update after rebase
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol b/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol index d09aba599..9dc9e6525 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol @@ -53,13 +53,7 @@ contract MixinERC721Transfer is bytes memory receiverData ) = decodeERC721AssetData(assetData); - // Transfer token. Saves gas by calling safeTransferFrom only - // when there is receiverData present. Either succeeds or throws. - if (receiverData.length > 0) { - ERC721Token(token).safeTransferFrom(from, to, tokenId, receiverData); - } else { - ERC721Token(token).transferFrom(from, to, tokenId); - } + ERC721Token(token).safeTransferFrom(from, to, tokenId, receiverData); } /// @dev Decodes ERC721 Asset data. |