Skip to content

Commit

Permalink
fix file paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SwayStar123 committed Sep 13, 2024
1 parent 2933705 commit 01acc88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Cargo
# will have compiled files and executables
/target/
target

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Expand Down
4 changes: 2 additions & 2 deletions examples/src3_mint_burn/tests/multi_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ use fuels::{

abigen!(Contract(
name = "MultiAsset",
abi = "./examples/src3_mint_burn/multi_asset/out/release/multi_src3_asset-abi.json"
abi = "./multi_asset/out/release/multi_src3_asset-abi.json"
));

const MULTI_ASSET_CONTRACT_BINARY_PATH: &str = "./out/release/multi_asset.bin";
const MULTI_ASSET_CONTRACT_BINARY_PATH: &str = "./multi_asset/out/release/multi_src3_asset.bin";

pub(crate) async fn setup() -> (WalletUnlocked, ContractId, MultiAsset<WalletUnlocked>) {
let number_of_coins = 1;
Expand Down
8 changes: 4 additions & 4 deletions examples/src3_mint_burn/tests/single_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ use fuels::{

abigen!(Contract(
name = "SingleAsset",
abi = "./examples/src3_mint_burn/single_asset/out/release/single_src3_asset-abi.json"
abi = "./single_asset/out/release/single_src3_asset-abi.json"
));

const SINGLE_ASSET_CONTRACT_BINARY_PATH: &str =
"./examples/src3_mint_burn/single_asset/out/release/single_src3_asset.bin";
"./single_asset/out/release/single_src3_asset.bin";

pub(crate) async fn setup() -> (WalletUnlocked, ContractId, SingleAsset<WalletUnlocked>) {
let number_of_coins = 1;
Expand Down Expand Up @@ -53,7 +53,7 @@ async fn test_mint_single_asset() {

let _mint_tx = instance
.methods()
.mint(wallet1.address().into(), Bits256::zeroed(), 100)
.mint(wallet1.address().into(), Some(Bits256::zeroed()), 100)
.with_variable_output_policy(VariableOutputPolicy::Exactly(1))
.call()
.await
Expand All @@ -66,7 +66,7 @@ async fn test_burn_single_asset() {

let _mint_tx = instance
.methods()
.mint(wallet1.address().into(), Bits256::zeroed(), 100)
.mint(wallet1.address().into(), Some(Bits256::zeroed()), 100)
.with_variable_output_policy(VariableOutputPolicy::Exactly(1))
.call()
.await
Expand Down

0 comments on commit 01acc88

Please sign in to comment.