Skip to content

Commit

Permalink
Merge pull request #256 from massalabs/u64_gas
Browse files Browse the repository at this point in the history
use u64 for gas everywhere
  • Loading branch information
damip authored Jun 21, 2023
2 parents 45b3cc1 + 4507cb2 commit 04c4620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/as_execution/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ pub(crate) fn get_remaining_points(
} else {
match env.get_exhausted_points().as_ref() {
Some(exhausted_points) => match exhausted_points.get(store).try_into() {
Ok::<i32, _>(exhausted) if exhausted > 0 => return Ok(0),
Ok::<i32, _>(_) => (),
Ok::<u64, _>(exhausted) if exhausted > 0 => return Ok(0),
Ok::<u64, _>(_) => (),
Err(_) => abi_bail!("exhausted_points has wrong type"),
},
None => abi_bail!("Lost reference to exhausted_points"),
Expand Down

0 comments on commit 04c4620

Please sign in to comment.