Skip to main content

error

Function error 

Source
pub fn error(
    contract: &Contract,
    bf: &BuiltinFunctionCall,
) -> Result<PushValue, CodegenError>
Expand description

Generates a PushValue for the __ERROR builtin function

Returns a PushValue containing the error selector. For error definitions: selector at start, right-padded with zeros (PUSH32 equivalent). For raw signatures: left-padded selector (PUSH4 equivalent).