Function ethers::core::utils::id[][src]

pub fn id<S>(signature: S) -> [u8; 4] where
    S: AsRef<str>, 
Expand description

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