Skip to content

Commit

Permalink
Bump fuels-rs init version. (FuelLabs#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
adlerjohn authored May 27, 2022
1 parent db2a045 commit bb50517
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions forc/src/utils/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ edition = "2021"
license = "Apache-2.0"
[dependencies]
fuel-gql-client = {{ version = "0.6", default-features = false }}
fuel-tx = "0.9"
fuels = "0.13"
fuels-abigen-macro = "0.13"
fuels = "0.14"
fuels-abigen-macro = "0.14"
tokio = {{ version = "1.12", features = ["rt", "macros"] }}
[[test]]
Expand Down Expand Up @@ -94,10 +92,8 @@ fn main() -> bool {
pub(crate) fn default_test_program(project_name: &str) -> String {
format!(
"{}{}{}{}{}",
r#"use fuel_tx::ContractId;
r#"use fuels::{prelude::*, tx::ContractId};
use fuels_abigen_macro::abigen;
use fuels::prelude::*;
use fuels::test_helpers;
// Load abi from json
abigen!(MyContract, "out/debug/"#,
Expand All @@ -106,7 +102,7 @@ abigen!(MyContract, "out/debug/"#,
async fn get_contract_instance() -> (MyContract, ContractId) {
// Launch a local network and deploy the contract
let wallet = launch_provider_and_get_wallet().await;
let wallet = launch_provider_and_get_single_wallet().await;
let id = Contract::deploy("./out/debug/"#,
project_name,
Expand All @@ -124,7 +120,8 @@ async fn can_get_contract_id() {
let (_instance, _id) = get_contract_instance().await;
// Now you have an instance of your contract you can use to test each function
}"#
}
"#
)
}

Expand Down

0 comments on commit bb50517

Please sign in to comment.