Skip to main content
edited tags
Link
Paul Razvan Berg
  • 18.7k
  • 6
  • 79
  • 148
Source Link
user311703
  • 379
  • 2
  • 9

Function selector for constructor & fallback function?

According to https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI, function selector is hashed from function name and list of its arguments put inside ().

For example, with function deposit(uint value), the function selector is Keccak hash of string deposit(uint256)

However, it is not clear in the case of constructor & fallback functions: what should be strings - to be hashed - for below 2 cases?

constructor(address addr) public { }

function () payable public { }

Thanks.