Skip to main content

mutate_void

Function mutate_void 

Source
pub(crate) fn mutate_void<T: SolCall>(
    call: T,
    sender: Address,
    f: impl FnOnce(Address, T) -> Result<()>,
) -> PrecompileResult
Expand description

Dispatches a state-mutating call that returns no data (e.g. approve, transfer).

Rejects static calls with StaticCallNotAllowed.