Skip to content

Commit

Permalink
Bump to fuels v0.39.0 (FuelLabs#4391)
Browse files Browse the repository at this point in the history
## Description
- Bump to `fuels v0.39.0`
- Update CI to use `rustc v.1.68.2` which is needed after bumping
`fuels`.

## Checklist

- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [ ] I have requested a review from the relevant team or maintainers.
  • Loading branch information
mohammadfawaz authored Apr 4, 2023
1 parent 4e0291c commit 32022b4
Show file tree
Hide file tree
Showing 39 changed files with 1,786 additions and 1,073 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
RUST_VERSION: 1.67.0
RUST_VERSION: 1.68.2
NIGHTLY_RUST_VERSION: nightly-2023-02-08

jobs:
Expand Down
2 changes: 1 addition & 1 deletion templates/sway-test-rs/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["{{authors}}"]
license = "Apache-2.0"

[dev-dependencies]
fuels = { version = "0.37", features = ["fuel-core-lib"] }
fuels = { version = "0.39", features = ["fuel-core-lib"] }
tokio = { version = "1.12", features = ["rt", "macros"] }

[[test]]
Expand Down
7 changes: 2 additions & 5 deletions templates/sway-test-rs/template/tests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ abigen!(Contract(
abi = "out/debug/{{project-name}}-abi.json"
));

async fn get_contract_instance() -> (MyContract, ContractId) {
async fn get_contract_instance() -> (MyContract<WalletUnlocked>, ContractId) {
// Launch a local network and deploy the contract
let mut wallets = launch_custom_provider_and_get_wallets(
WalletsConfig::new(
Expand All @@ -23,10 +23,7 @@ async fn get_contract_instance() -> (MyContract, ContractId) {
let id = Contract::deploy(
"./out/debug/{{project-name}}.bin",
&wallet,
TxParameters::default(),
StorageConfiguration::with_storage_path(Some(
"./out/debug/{{project-name}}-storage_slots.json".to_string(),
)),
DeployConfiguration::default(),
)
.await
.unwrap();
Expand Down
Loading

0 comments on commit 32022b4

Please sign in to comment.