aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-06-26 00:08:49 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-06-26 07:19:08 +0800
commit1076959006be7ad42f933e476aa75cbca17520c8 (patch)
tree2d8ae7a146368630edec02faae76d9115a8d3f0e
parent5127cbb22c8be536996137416f826afd231b0c14 (diff)
downloaddexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar.gz
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar.bz2
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar.lz
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar.xz
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.tar.zst
dexon-0x-contracts-1076959006be7ad42f933e476aa75cbca17520c8.zip
Compute bytes4 proxyid constants
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxy/ERC20Proxy.sol2
-rw-r--r--packages/contracts/src/contracts/current/protocol/AssetProxy/ERC721Proxy.sol2
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.