sol_error_revert

Function sol_error_revert 

Source
pub fn sol_error_revert(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.