From e03bff95a3d04e56da71f277efbc27b6c2f4671b Mon Sep 17 00:00:00 2001 From: Call Delegation Date: Tue, 10 Oct 2023 21:25:08 -0400 Subject: [PATCH] Bumping template to use fuels v0.48.0 --- templates/sway-test-rs/template/Cargo.toml | 2 +- templates/sway-test-rs/template/tests/harness.rs | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/templates/sway-test-rs/template/Cargo.toml b/templates/sway-test-rs/template/Cargo.toml index 7294653420b..a9493792873 100644 --- a/templates/sway-test-rs/template/Cargo.toml +++ b/templates/sway-test-rs/template/Cargo.toml @@ -7,7 +7,7 @@ authors = ["{{authors}}"] license = "Apache-2.0" [dev-dependencies] -fuels = { version = "0.47", features = ["fuel-core-lib"] } +fuels = { version = "0.48", features = ["fuel-core-lib"] } tokio = { version = "1.12", features = ["rt", "macros"] } [[test]] diff --git a/templates/sway-test-rs/template/tests/harness.rs b/templates/sway-test-rs/template/tests/harness.rs index 4e38a58c0fa..3476026f256 100644 --- a/templates/sway-test-rs/template/tests/harness.rs +++ b/templates/sway-test-rs/template/tests/harness.rs @@ -20,12 +20,7 @@ async fn get_contract_instance() -> (MyContract, ContractId) { .await; let wallet = wallets.pop().unwrap(); - let storage_config = - StorageConfiguration::load_from("out/debug/{{project-name}}-storage_slots.json").unwrap(); - - let load_config = LoadConfiguration::default().with_storage_configuration(storage_config); - - let id = Contract::load_from("./out/debug/{{project-name}}.bin", load_config) + let id = Contract::load_from("./out/debug/{{project-name}}.bin", LoadConfiguration::default()) .unwrap() .deploy(&wallet, TxParameters::default()) .await