diff --git a/.gitignore b/.gitignore index ed3640c..8b1758d 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/examples/src3_mint_burn/tests/multi_asset.rs b/examples/src3_mint_burn/tests/multi_asset.rs index 12ed739..860f31c 100644 --- a/examples/src3_mint_burn/tests/multi_asset.rs +++ b/examples/src3_mint_burn/tests/multi_asset.rs @@ -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) { let number_of_coins = 1; diff --git a/examples/src3_mint_burn/tests/single_asset.rs b/examples/src3_mint_burn/tests/single_asset.rs index 97e6578..a02000d 100644 --- a/examples/src3_mint_burn/tests/single_asset.rs +++ b/examples/src3_mint_burn/tests/single_asset.rs @@ -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) { let number_of_coins = 1; @@ -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 @@ -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