Skip to content

Commit

Permalink
Rebuild test contracts and adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Sep 10, 2021
1 parent ebdb3c3 commit e42379f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/vm/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ mod tests {

let report2 = instance.create_gas_report();
assert_eq!(report2.used_externally, 73);
assert_eq!(report2.used_internally, 36837);
assert_eq!(report2.used_internally, 39202);
assert_eq!(report2.limit, LIMIT);
assert_eq!(
report2.remaining,
Expand Down Expand Up @@ -890,7 +890,7 @@ mod singlepass_tests {
.unwrap();

let init_used = orig_gas - instance.get_gas_left();
assert_eq!(init_used, 36910);
assert_eq!(init_used, 39275);
}

#[test]
Expand All @@ -913,7 +913,7 @@ mod singlepass_tests {
.unwrap();

let execute_used = gas_before_execute - instance.get_gas_left();
assert_eq!(execute_used, 159891);
assert_eq!(execute_used, 162233);
}

#[test]
Expand Down Expand Up @@ -947,6 +947,6 @@ mod singlepass_tests {
assert_eq!(answer.as_slice(), b"{\"verifier\":\"verifies\"}");

let query_used = gas_before_query - instance.get_gas_left();
assert_eq!(query_used, 28274);
assert_eq!(query_used, 30646);
}
}
Binary file modified packages/vm/testdata/floaty_1.0.wasm
Binary file not shown.
Binary file modified packages/vm/testdata/hackatom_1.0.wasm
Binary file not shown.
Binary file modified packages/vm/testdata/ibc_reflect_1.0.wasm
Binary file not shown.

0 comments on commit e42379f

Please sign in to comment.