aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
index e27a104b9..abb709bd7 100644
--- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
+++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol
@@ -45,14 +45,14 @@ contract ERC721Proxy is
// No work to do if amount is zero
if (amount == 0) return;
+ // There exists only 1 of each token.
+ require(amount == 1);
+
// Decode metadata
address token;
uint256 tokenId;
(token, tokenId) = decodeMetadata(assetMetadata);
- // There exists only 1 of each token.
- require(amount == 1);
-
// Either succeeds or throws.
ERC721Token(token).transferFrom(from, to, tokenId);
}