Skip to content

Commit

Permalink
Simplify Instance::get_gas_left
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 6, 2021
1 parent d64870b commit cf8ebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ where

/// Returns the currently remaining gas.
pub fn get_gas_left(&self) -> u64 {
self.create_gas_report().remaining
self.env.get_gas_left()
}

/// Creates and returns a gas report.
Expand Down

0 comments on commit cf8ebe0

Please sign in to comment.