diff options
author | Remco Bloemen <remco@wicked.ventures> | 2018-06-26 00:08:49 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-26 07:19:08 +0800 |
commit | 1076959006be7ad42f933e476aa75cbca17520c8 (patch) | |
tree | 2d8ae7a146368630edec02faae76d9115a8d3f0e /packages/contracts | |
parent | 5127cbb22c8be536996137416f826afd231b0c14 (diff) | |
download | dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar.gz dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar.bz2 dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar.lz dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar.xz dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.tar.zst dexon-sol-tools-1076959006be7ad42f933e476aa75cbca17520c8.zip |
Compute bytes4 proxyid constants
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol | 2 | ||||
-rw-r--r-- | packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol index 002e8b662..b74d2c231 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol @@ -30,7 +30,7 @@ contract ERC20Proxy is MixinERC20Transfer { // Id of this proxy. - bytes4 constant PROXY_ID = 0xf47261b0; + bytes4 constant PROXY_ID = bytes4(keccak256("ERC20Token(address)")); /// @dev Gets the proxy id associated with the proxy address. /// @return Proxy id. diff --git a/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol b/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol index ce2da76c2..f6293f97d 100644 --- a/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol +++ b/packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol @@ -30,7 +30,7 @@ contract ERC721Proxy is MixinERC721Transfer { // Id of this proxy. - bytes4 constant PROXY_ID = 0x08e937fa; + bytes4 constant PROXY_ID = bytes4(keccak256("ERC721Token(address,uint256,bytes)")); /// @dev Gets the proxy id associated with the proxy address. /// @return Proxy id. |