diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-04-14 09:35:52 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-04-21 04:56:18 +0800 |
commit | dfe6b2844b3c847e940b3f9d13cb981755c6c694 (patch) | |
tree | bf8111785387fb161ea2d9e14332bff099544db6 /packages/contracts/src | |
parent | 6be5fe928e4820ed674c7a8f74fd24b63871b4c7 (diff) | |
download | dexon-0x-contracts-dfe6b2844b3c847e940b3f9d13cb981755c6c694.tar.gz dexon-0x-contracts-dfe6b2844b3c847e940b3f9d13cb981755c6c694.tar.zst dexon-0x-contracts-dfe6b2844b3c847e940b3f9d13cb981755c6c694.zip |
Reverted change that allowed ERC721 transfer proxy to be called with amount 0. This now throws.
Diffstat (limited to 'packages/contracts/src')
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol | 3 |
1 files changed, 0 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 e9b2b90ba..c2069d129 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxyDispatcher/proxies/ERC721Proxy.sol @@ -42,9 +42,6 @@ contract ERC721Proxy is external onlyAuthorized { - // No work to do if amount is zero - if (amount == 0) return; - // There exists only 1 of each token. require(amount == 1); |