Skip to content

Commit

Permalink
test: fix gas cost estimations due to forc 0.42
Browse files Browse the repository at this point in the history
  • Loading branch information
iqdecay committed Jul 11, 2023
1 parent 5d98917 commit bcbbeee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ mod tests {
.await?;
// ANCHOR_END: contract_call_cost_estimation

assert_eq!(transaction_cost.gas_used, 498);
assert_eq!(transaction_cost.gas_used, 499);

Ok(())
}
Expand Down Expand Up @@ -628,7 +628,7 @@ mod tests {
.await?;
// ANCHOR_END: multi_call_cost_estimation

assert_eq!(transaction_cost.gas_used, 783);
assert_eq!(transaction_cost.gas_used, 786);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/tests/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async fn test_contract_call_fee_estimation() -> Result<()> {
let tolerance = 0.2;

let expected_min_gas_price = 0; // This is the default min_gas_price from the ConsensusParameters
let expected_gas_used = 597;
let expected_gas_used = 598;
let expected_metered_bytes_size = 728;
let expected_total_fee = 372;

Expand Down

0 comments on commit bcbbeee

Please sign in to comment.