Function pwasm_utils::inject_gas_counter [] [src]

pub fn inject_gas_counter(module: Module, rules: &Set) -> Result<Module, Module>

Injects gas counter.

Can only fail if encounters operation forbidden by gas rules, in this case it returns error with the original module.