Skip to content

Commit

Permalink
chore: use forc 0.48 (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e authored Dec 6, 2023
1 parent 2fe88f7 commit 4776611
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ env:
FUEL_CORE_VERSION: 0.21.0
FUEL_CORE_PATCH_BRANCH:
RUST_VERSION: 1.73.0
FORC_VERSION: 0.46.0
FORC_PATCH_BRANCH: "feat/transaction-policies"
FORC_VERSION: 0.48.0
FORC_PATCH_BRANCH: ""
FORC_PATCH_REVISION: ""
FORC_IMPLICIT_STD_GIT_BRANCH: ""

jobs:
setup-test-projects:
Expand Down
4 changes: 2 additions & 2 deletions examples/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ mod tests {
.await?;
// ANCHOR_END: contract_call_cost_estimation

assert_eq!(transaction_cost.gas_used, 574);
assert_eq!(transaction_cost.gas_used, 563);

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

assert_eq!(transaction_cost.gas_used, 797);
assert_eq!(transaction_cost.gas_used, 785);

Ok(())
}
Expand Down
3 changes: 0 additions & 3 deletions packages/fuels/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,3 @@ members = [
'tests/types/scripts/script_u256',
'tests/types/scripts/script_vectors',
]

[patch.'https://github.com/fuellabs/sway']
std = { git = "https://github.com/fuellabs/sway", branch = "feat/transaction-policies" }
2 changes: 1 addition & 1 deletion packages/fuels/tests/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,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 = 688;
let expected_gas_used = 675;
let expected_metered_bytes_size = 792;
let expected_total_fee = 898;

Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/tests/providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async fn test_gas_forwarded_defaults_to_tx_limit() -> Result<()> {
);

// The gas used by the script to call a contract and forward remaining gas limit.
let gas_used_by_script = 211;
let gas_used_by_script = 210;
let gas_limit = 225_883;
let response = contract_instance
.methods()
Expand Down

0 comments on commit 4776611

Please sign in to comment.