mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-04 02:53:35 +00:00
Function selectors are defined by Ethereum, not Solidity
This commit is contained in:
parent
26c91183dc
commit
ad70b8d276
@ -31,7 +31,7 @@ For some "standard interfaces" like [the ERC-20 token interface](https://github.
|
||||
|
||||
### How Interfaces are Identified
|
||||
|
||||
For this standard, an *interface* is a set of [function selectors as calculated in Solidity](http://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector). This a subset of [Solidity's concept of interfaces](http://solidity.readthedocs.io/en/develop/abi-spec.html) and the `interface` keyword definition which also define return types, mutability and events.
|
||||
For this standard, an *interface* is a set of [function selectors as defined by the Ethereum ABI](http://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector). This a subset of [Solidity's concept of interfaces](http://solidity.readthedocs.io/en/develop/abi-spec.html) and the `interface` keyword definition which also define return types, mutability and events.
|
||||
|
||||
We define the interface identifier as the XOR of all function selectors in the interface. This code example shows how to calculate an interface identifier:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user