From f6b036601be9ceca91eea164ba91586350418435 Mon Sep 17 00:00:00 2001 From: Brandon Kite Date: Wed, 11 May 2022 12:18:14 -0700 Subject: [PATCH] Bump fuels* to 0.12 (#1520) * bump to latest versions * remove salt from sample test harness --- Cargo.lock | 4 ++-- forc-pkg/Cargo.toml | 2 +- forc/src/utils/defaults.rs | 9 ++++----- sway-core/Cargo.toml | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e0c79f2f09..0323f136eb2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1338,9 +1338,9 @@ dependencies = [ [[package]] name = "fuels-types" -version = "0.10.1" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e41f0c46afe4389edc34aa84064808ab8d41cb0e4e06fd7ea2a8e19abc82eaed" +checksum = "7fdcf825c7e74d7af80f0d9b86edcaef481bd62644b976ba55bc48ad5d3d63a7" dependencies = [ "anyhow", "serde", diff --git a/forc-pkg/Cargo.toml b/forc-pkg/Cargo.toml index 9c340ced4ad..7f77f05c1b3 100644 --- a/forc-pkg/Cargo.toml +++ b/forc-pkg/Cargo.toml @@ -11,7 +11,7 @@ description = "Building, locking, fetching and updating Sway projects as Forc pa [dependencies] anyhow = "1" forc-util = { version = "0.12.1", path = "../forc-util" } -fuels-types = "0.10" +fuels-types = "0.12" git2 = "0.14" petgraph = { version = "0.6", features = ["serde-1"] } semver = { version = "1.0", features = ["serde"] } diff --git a/forc/src/utils/defaults.rs b/forc/src/utils/defaults.rs index eaef876b2ff..d3988f80fe6 100644 --- a/forc/src/utils/defaults.rs +++ b/forc/src/utils/defaults.rs @@ -32,8 +32,8 @@ license = "Apache-2.0" [dependencies] fuel-gql-client = {{ version = "0.6", default-features = false }} fuel-tx = "0.9" -fuels = "0.10" -fuels-abigen-macro = "0.10" +fuels = "0.12" +fuels-abigen-macro = "0.12" rand = "0.8" tokio = {{ version = "1.12", features = ["rt", "macros"] }} @@ -95,7 +95,7 @@ fn main() -> bool { pub(crate) fn default_test_program(project_name: &str) -> String { format!( "{}{}{}{}{}", - r#"use fuel_tx::{ContractId, Salt}; + r#"use fuel_tx::ContractId; use fuels_abigen_macro::abigen; use fuels::prelude::*; use fuels::test_helpers; @@ -107,10 +107,9 @@ abigen!(MyContract, "out/debug/"#, async fn get_contract_instance() -> (MyContract, ContractId) { // Deploy the compiled contract - let salt = Salt::from([0u8; 32]); let compiled = Contract::load_sway_contract("./out/debug/"#, project_name, - r#".bin", salt).unwrap(); + r#".bin").unwrap(); // Launch a local network and deploy the contract let (provider, wallet) = test_helpers::setup_test_provider_and_wallet().await; diff --git a/sway-core/Cargo.toml b/sway-core/Cargo.toml index 30b9edb490a..7d30c46f185 100644 --- a/sway-core/Cargo.toml +++ b/sway-core/Cargo.toml @@ -19,7 +19,7 @@ either = "1.6" fuel-asm = "0.4" fuel-crypto = "0.4" fuel-vm = "0.8" -fuels-types = "0.10" +fuels-types = "0.12" hex = { version = "0.4", optional = true } im = "15.0" itertools = "0.10"