Skip to content

Commit

Permalink
Bump fuels* to 0.12 (FuelLabs#1520)
Browse files Browse the repository at this point in the history
* bump to latest versions

* remove salt from sample test harness
  • Loading branch information
Voxelot authored May 11, 2022
1 parent ef4cae9 commit f6b0366
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion forc-pkg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
9 changes: 4 additions & 5 deletions forc/src/utils/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }}
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sway-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f6b0366

Please sign in to comment.