Compute bytes4 proxyid constants

This commit is contained in:
Remco Bloemen
2018-06-25 18:08:49 +02:00
committed by Amir Bandeali
parent 5127cbb22c
commit 1076959006
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.