Function ss_ewasm_api::consume_gas[][src]

pub fn consume_gas(amount: u64)
Expand description

Subtracts the given amount from the VM’s gas counter. This is usually injected by the metering contract at deployment time, and hence is unneeded in most cases.