From 6b13b27d018b45e9cf57205c7004f9b8369d245b Mon Sep 17 00:00:00 2001 From: Alin Cruceat Date: Thu, 28 Sep 2023 13:13:14 +0300 Subject: [PATCH] update test workspace path --- contracts/adder/tests/adder_blackbox_test.rs | 2 +- contracts/adder/tests/adder_blackbox_upgrade_test.rs | 2 +- contracts/adder/tests/adder_blackbox_with_values_test.rs | 2 +- contracts/adder/tests/adder_scenario_rs_test.rs | 2 +- contracts/adder/tests/adder_whitebox_test.rs | 2 +- .../tests/crowdfunding_esdt_blackbox_test.rs | 2 +- .../tests/crowdfunding_esdt_scenario_rs_test.rs | 2 +- .../tests/crypto_bubbles_scenario_rs_test.rs | 2 +- .../digital-cash/tests/digital_cash_scenario_rs_test.rs | 2 +- contracts/empty/tests/empty_scenario_rs_test.rs | 2 +- .../tests/esdt_transfer_with_fee_scenario_rs_test.rs | 2 +- contracts/factorial/tests/factorial_scenario_rs_test.rs | 2 +- .../lottery-esdt/tests/lottery_esdt_scenario_rs_test.rs | 2 +- contracts/multisig/tests/multisig_blackbox_test.rs | 2 +- contracts/multisig/tests/multisig_scenario_rs_test.rs | 2 +- contracts/multisig/tests/multisig_whitebox_test.rs | 8 ++++---- contracts/order-book/pair/tests/pair_scenario_rs_test.rs | 2 +- .../tests/ping_pong_egld_scenario_rs_test.rs | 2 +- .../proxy-pause/tests/proxy_pause_scenario_rs_test.rs | 2 +- .../token-release/tests/token_release_scenario_rs_test.rs | 2 +- 20 files changed, 23 insertions(+), 23 deletions(-) diff --git a/contracts/adder/tests/adder_blackbox_test.rs b/contracts/adder/tests/adder_blackbox_test.rs index 3d2e1665..9414c95f 100644 --- a/contracts/adder/tests/adder_blackbox_test.rs +++ b/contracts/adder/tests/adder_blackbox_test.rs @@ -4,7 +4,7 @@ const ADDER_PATH_EXPR: &str = "file:output/adder.wasm"; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/adder"); + blockchain.set_current_dir_from_workspace("contracts/adder"); blockchain.register_contract(ADDER_PATH_EXPR, adder::ContractBuilder); blockchain diff --git a/contracts/adder/tests/adder_blackbox_upgrade_test.rs b/contracts/adder/tests/adder_blackbox_upgrade_test.rs index 1e3301f3..cf381b97 100644 --- a/contracts/adder/tests/adder_blackbox_upgrade_test.rs +++ b/contracts/adder/tests/adder_blackbox_upgrade_test.rs @@ -4,7 +4,7 @@ const ADDER_PATH_EXPR: &str = "file:output/adder.wasm"; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/adder"); + blockchain.set_current_dir_from_workspace("contracts/adder"); blockchain.register_contract("file:output/adder.wasm", adder::ContractBuilder); blockchain diff --git a/contracts/adder/tests/adder_blackbox_with_values_test.rs b/contracts/adder/tests/adder_blackbox_with_values_test.rs index 62173c5c..29d186b0 100644 --- a/contracts/adder/tests/adder_blackbox_with_values_test.rs +++ b/contracts/adder/tests/adder_blackbox_with_values_test.rs @@ -6,7 +6,7 @@ const ADDER_PATH_EXPR: &str = "file:output/adder.wasm"; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/adder"); + blockchain.set_current_dir_from_workspace("contracts/adder"); blockchain.register_contract("file:output/adder.wasm", adder::ContractBuilder); blockchain diff --git a/contracts/adder/tests/adder_scenario_rs_test.rs b/contracts/adder/tests/adder_scenario_rs_test.rs index a92de289..893ff706 100644 --- a/contracts/adder/tests/adder_scenario_rs_test.rs +++ b/contracts/adder/tests/adder_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/adder"); + blockchain.set_current_dir_from_workspace("contracts/adder"); blockchain.register_contract("file:output/adder.wasm", adder::ContractBuilder); blockchain diff --git a/contracts/adder/tests/adder_whitebox_test.rs b/contracts/adder/tests/adder_whitebox_test.rs index 97916d4e..76337e33 100644 --- a/contracts/adder/tests/adder_whitebox_test.rs +++ b/contracts/adder/tests/adder_whitebox_test.rs @@ -5,7 +5,7 @@ const ADDER_PATH_EXPR: &str = "file:output/adder.wasm"; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/adder"); + blockchain.set_current_dir_from_workspace("contracts/adder"); blockchain.register_contract("file:output/adder.wasm", adder::ContractBuilder); blockchain diff --git a/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_blackbox_test.rs b/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_blackbox_test.rs index 66311ab7..0a14e145 100644 --- a/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_blackbox_test.rs +++ b/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_blackbox_test.rs @@ -6,7 +6,7 @@ const CF_PATH_EXPR: &str = "file:output/crowdfunding-esdt.wasm"; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/crowdfunding-esdt"); + blockchain.set_current_dir_from_workspace("contracts/crowdfunding-esdt"); blockchain.register_contract(CF_PATH_EXPR, crowdfunding_esdt::ContractBuilder); blockchain diff --git a/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_scenario_rs_test.rs b/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_scenario_rs_test.rs index 2d1ff391..e169f709 100644 --- a/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_scenario_rs_test.rs +++ b/contracts/crowdfunding-esdt/tests/crowdfunding_esdt_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/crowdfunding-esdt"); + blockchain.set_current_dir_from_workspace("contracts/crowdfunding-esdt"); blockchain.register_contract( "file:output/crowdfunding-esdt.wasm", diff --git a/contracts/crypto-bubbles/tests/crypto_bubbles_scenario_rs_test.rs b/contracts/crypto-bubbles/tests/crypto_bubbles_scenario_rs_test.rs index 3f54c45a..3a8d1375 100644 --- a/contracts/crypto-bubbles/tests/crypto_bubbles_scenario_rs_test.rs +++ b/contracts/crypto-bubbles/tests/crypto_bubbles_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/crypto-bubbles"); + blockchain.set_current_dir_from_workspace("contracts/crypto-bubbles"); blockchain.register_contract( "file:output/crypto-bubbles.wasm", diff --git a/contracts/digital-cash/tests/digital_cash_scenario_rs_test.rs b/contracts/digital-cash/tests/digital_cash_scenario_rs_test.rs index bc20caac..3a4c18a7 100644 --- a/contracts/digital-cash/tests/digital_cash_scenario_rs_test.rs +++ b/contracts/digital-cash/tests/digital_cash_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/digital-cash"); + blockchain.set_current_dir_from_workspace("contracts/digital-cash"); blockchain.register_contract( "file:output/digital-cash.wasm", diff --git a/contracts/empty/tests/empty_scenario_rs_test.rs b/contracts/empty/tests/empty_scenario_rs_test.rs index a4e9d016..f86005fc 100644 --- a/contracts/empty/tests/empty_scenario_rs_test.rs +++ b/contracts/empty/tests/empty_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/empty"); + blockchain.set_current_dir_from_workspace("contracts/empty"); blockchain.register_contract("file:output/empty.wasm", empty::ContractBuilder); blockchain diff --git a/contracts/esdt-transfer-with-fee/tests/esdt_transfer_with_fee_scenario_rs_test.rs b/contracts/esdt-transfer-with-fee/tests/esdt_transfer_with_fee_scenario_rs_test.rs index 4dd60121..a99ed825 100644 --- a/contracts/esdt-transfer-with-fee/tests/esdt_transfer_with_fee_scenario_rs_test.rs +++ b/contracts/esdt-transfer-with-fee/tests/esdt_transfer_with_fee_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/esdt-transfer-with-fee"); + blockchain.set_current_dir_from_workspace("contracts/esdt-transfer-with-fee"); blockchain.register_contract( "file:output/esdt-transfer-with-fee.wasm", diff --git a/contracts/factorial/tests/factorial_scenario_rs_test.rs b/contracts/factorial/tests/factorial_scenario_rs_test.rs index 9e192fbb..2ce6e854 100644 --- a/contracts/factorial/tests/factorial_scenario_rs_test.rs +++ b/contracts/factorial/tests/factorial_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/factorial"); + blockchain.set_current_dir_from_workspace("contracts/factorial"); blockchain.register_contract("file:output/factorial.wasm", factorial::ContractBuilder); blockchain diff --git a/contracts/lottery-esdt/tests/lottery_esdt_scenario_rs_test.rs b/contracts/lottery-esdt/tests/lottery_esdt_scenario_rs_test.rs index 31ebeb7a..e8a0218c 100644 --- a/contracts/lottery-esdt/tests/lottery_esdt_scenario_rs_test.rs +++ b/contracts/lottery-esdt/tests/lottery_esdt_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/lottery-esdt"); + blockchain.set_current_dir_from_workspace("contracts/lottery-esdt"); blockchain.register_contract( "file:output/lottery-esdt.wasm", diff --git a/contracts/multisig/tests/multisig_blackbox_test.rs b/contracts/multisig/tests/multisig_blackbox_test.rs index b4e8765e..db90c828 100644 --- a/contracts/multisig/tests/multisig_blackbox_test.rs +++ b/contracts/multisig/tests/multisig_blackbox_test.rs @@ -37,7 +37,7 @@ type AdderContract = ContractInfo>; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/multisig"); + blockchain.set_current_dir_from_workspace("contracts/multisig"); blockchain.register_contract(MULTISIG_PATH_EXPR, multisig::ContractBuilder); blockchain.register_contract(ADDER_PATH_EXPR, adder::ContractBuilder); diff --git a/contracts/multisig/tests/multisig_scenario_rs_test.rs b/contracts/multisig/tests/multisig_scenario_rs_test.rs index 27d286e1..7fe13219 100644 --- a/contracts/multisig/tests/multisig_scenario_rs_test.rs +++ b/contracts/multisig/tests/multisig_scenario_rs_test.rs @@ -4,7 +4,7 @@ const WEGLD_SWAP_EXPR: &str = "0x0061736d0100000001661160000060017f0060027f7f017 fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/multisig"); + blockchain.set_current_dir_from_workspace("contracts/multisig"); blockchain.register_partial_contract::( "file:output/multisig.wasm", diff --git a/contracts/multisig/tests/multisig_whitebox_test.rs b/contracts/multisig/tests/multisig_whitebox_test.rs index 6c949fa8..7fd37d1e 100644 --- a/contracts/multisig/tests/multisig_whitebox_test.rs +++ b/contracts/multisig/tests/multisig_whitebox_test.rs @@ -69,7 +69,7 @@ pub struct CallActionDataRaw { fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/multisig"); + blockchain.set_current_dir_from_workspace("contracts/multisig"); blockchain.register_contract(MULTISIG_PATH_EXPR, multisig::ContractBuilder); blockchain @@ -151,7 +151,7 @@ fn call_propose( ActionRaw::_Nothing => panic!("Invalid action"), ActionRaw::AddBoardMember(addr) => { sc.propose_add_board_member(managed_address!(&addr)) - }, + } ActionRaw::AddProposer(addr) => sc.propose_add_proposer(managed_address!(&addr)), ActionRaw::RemoveUser(addr) => sc.propose_remove_user(managed_address!(&addr)), ActionRaw::ChangeQuorum(new_size) => sc.propose_change_quorum(new_size), @@ -170,7 +170,7 @@ fn call_propose( opt_endpoint, boxed_bytes_vec_to_managed(call_data.arguments).into(), ) - }, + } ActionRaw::SendAsyncCall(call_data) => { let opt_endpoint = if call_data.endpoint_name.is_empty() { OptionalValue::None @@ -186,7 +186,7 @@ fn call_propose( opt_endpoint, boxed_bytes_vec_to_managed(call_data.arguments).into(), ) - }, + } ActionRaw::SCDeployFromSource { amount, source, diff --git a/contracts/order-book/pair/tests/pair_scenario_rs_test.rs b/contracts/order-book/pair/tests/pair_scenario_rs_test.rs index a9dc1229..5019bd1e 100644 --- a/contracts/order-book/pair/tests/pair_scenario_rs_test.rs +++ b/contracts/order-book/pair/tests/pair_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/order-book/pair"); + blockchain.set_current_dir_from_workspace("contracts/order-book/pair"); blockchain.register_contract( "file:output/order-book-pair.wasm", diff --git a/contracts/ping-pong-egld/tests/ping_pong_egld_scenario_rs_test.rs b/contracts/ping-pong-egld/tests/ping_pong_egld_scenario_rs_test.rs index fb7c98be..7305a2c8 100644 --- a/contracts/ping-pong-egld/tests/ping_pong_egld_scenario_rs_test.rs +++ b/contracts/ping-pong-egld/tests/ping_pong_egld_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/ping-pong-egld"); + blockchain.set_current_dir_from_workspace("contracts/ping-pong-egld"); blockchain.register_contract( "file:output/ping-pong-egld.wasm", diff --git a/contracts/proxy-pause/tests/proxy_pause_scenario_rs_test.rs b/contracts/proxy-pause/tests/proxy_pause_scenario_rs_test.rs index 63d81f0f..0b6a22c4 100644 --- a/contracts/proxy-pause/tests/proxy_pause_scenario_rs_test.rs +++ b/contracts/proxy-pause/tests/proxy_pause_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/proxy-pause"); + blockchain.set_current_dir_from_workspace("contracts/proxy-pause"); blockchain.register_contract("file:output/proxy-pause.wasm", proxy_pause::ContractBuilder); diff --git a/contracts/token-release/tests/token_release_scenario_rs_test.rs b/contracts/token-release/tests/token_release_scenario_rs_test.rs index ca1a7cad..68a64307 100644 --- a/contracts/token-release/tests/token_release_scenario_rs_test.rs +++ b/contracts/token-release/tests/token_release_scenario_rs_test.rs @@ -2,7 +2,7 @@ use multiversx_sc_scenario::*; fn world() -> ScenarioWorld { let mut blockchain = ScenarioWorld::new(); - blockchain.set_current_dir_from_workspace("contracts/examples/token-release"); + blockchain.set_current_dir_from_workspace("contracts/token-release"); blockchain.register_contract( "file:output/token-release.wasm",