Skip to main content

self_call_is_state_mutating

Function self_call_is_state_mutating 

Source
fn self_call_is_state_mutating(
    hir: &Hir<'_>,
    enclosing_contract: Option<ContractId>,
    member_name: Symbol,
    explicit_arg_count: usize,
) -> bool
Expand description

Returns true when a this.<member>(...) call may emit logs or mutate state. Conservative on unresolved/overloaded names (avoids gcx.type_of_res for the this builtin, which panics).