From bcbbeee91ea5d26197cea401cca71b97ca9bbff6 Mon Sep 17 00:00:00 2001 From: iqdecay Date: Tue, 11 Jul 2023 13:37:59 +0200 Subject: [PATCH] test: fix gas cost estimations due to forc 0.42 --- examples/contracts/src/lib.rs | 4 ++-- packages/fuels/tests/contracts.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/contracts/src/lib.rs b/examples/contracts/src/lib.rs index c9835164dd..776889b22e 100644 --- a/examples/contracts/src/lib.rs +++ b/examples/contracts/src/lib.rs @@ -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(()) } @@ -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(()) } diff --git a/packages/fuels/tests/contracts.rs b/packages/fuels/tests/contracts.rs index 9620dbd36e..42cd2d1e17 100644 --- a/packages/fuels/tests/contracts.rs +++ b/packages/fuels/tests/contracts.rs @@ -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;