sol_error_revert

Function sol_error_revert 

Source
pub fn sol_error_revert(
    gas_used: &mut u64,
    ctx: &ArbPrecompileCtx,
    payload: Vec<u8>,
    gas_limit: u64,
) -> PrecompileResult
Expand description

Emit a pre-encoded Solidity custom-error payload (selector + ABI args) as a revert. Adds the copy cost for the payload to the accumulated gas, attributed to Computation to mirror the reference framework’s resultCost burn.