Function ethcontract_common::hash::function_selector

source ยท
pub fn function_selector<S>(signature: S) -> H32
where S: AsRef<str>,
Expand description

Calculates the function selector as per the contract ABI specification. This is definied as the first 4 bytes of the Keccak256 hash of the function signature.