Skip to main content

function_selector

Function function_selector 

Source
pub fn function_selector(signature: &str) -> [u8; 4]
Expand description

Computes the 4-byte function selector keccak256(signature)[..4].

signature must be the canonical form, e.g. "transfer(address,uint256)".