Skip to content

Commit

Permalink
Fix formatting issue when generated (#5185)
Browse files Browse the repository at this point in the history
## Description
- Bump harness template to v0.48.0 for [intro-to-sway
guide](FuelLabs/docs-hub#55)
- Formatting properly with cargo fmt
- Previous that had formatting issue
[PR](#5181)

## Checklist

- [x] I have linked to any relevant issues.
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [x] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] 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).
- [x] I have requested a review from the relevant team or maintainers.

---------

Co-authored-by: Sandusky <39354014+cold-briu@users.noreply.github.com>
  • Loading branch information
calldelegation and cold-briu authored Oct 12, 2023
1 parent 98d0810 commit 66a4abc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/sway-test-rs/template/tests/harness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ async fn get_contract_instance() -> (MyContract<WalletUnlocked>, ContractId) {
.await;
let wallet = wallets.pop().unwrap();

let id = Contract::load_from("./out/debug/{{project-name}}.bin", LoadConfiguration::default())
let id = Contract::load_from(
"./out/debug/{{project-name}}.bin",
LoadConfiguration::default(),
)
.unwrap()
.deploy(&wallet, TxParameters::default())
.await
Expand Down

0 comments on commit 66a4abc

Please sign in to comment.