Skip to content

@id

Compute the keccak256 hash of a string (first 4 bytes for selectors).

Returns: bytes32

@id(text)
Name Type Description
text string String to hash (e.g. a function signature)
# Compute a function selector
set $sel @id("transfer(address,uint256)")