aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-06-20 08:01:41 +0800
committerJacob Evans <jacob@dekz.net>2018-06-20 08:01:41 +0800
commit25fa29e6e14e3e2d5551b868ee4c433ae9708e60 (patch)
tree6154b7b6a8205488bf633986e1517188759ced11 /packages/contracts
parentbddc47f9b2e5d889e4c172f3d8ed1eb4b61faf1b (diff)
downloaddexon-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')
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxy/MixinERC721Transfer.sol8
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.