fix comment for gas extern in Wasm runtime (#8101)

This commit is contained in:
Alexey 2018-03-14 14:27:18 +03:00 committed by Marek Kotewicz
parent 23fc5517b5
commit 5c47116889
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ impl<'a> Runtime<'a> {
Ok(self.gas_limit - self.gas_counter)
}
/// Report gas cost with the params passed in wasm stack
/// Charges gas for the current block of execution. Returns an error in case of running out of gas.
fn gas(&mut self, args: RuntimeArgs) -> Result<()> {
let amount: u32 = args.nth_checked(0)?;
if self.charge_gas(amount as u64) {