Skip to content

Commit

Permalink
update test workspace path
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Sep 28, 2023
1 parent e030876 commit 6b13b27
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion contracts/adder/tests/adder_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/adder/tests/adder_blackbox_upgrade_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/adder/tests/adder_blackbox_with_values_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/adder/tests/adder_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/adder/tests/adder_whitebox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion contracts/empty/tests/empty_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion contracts/factorial/tests/factorial_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion contracts/multisig/tests/multisig_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type AdderContract = ContractInfo<adder::Proxy<StaticApi>>;

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);

Check failure on line 43 in contracts/multisig/tests/multisig_blackbox_test.rs

View workflow job for this annotation

GitHub Actions / Contracts / Rust tests

cannot find value `ContractBuilder` in crate `adder`
Expand Down
2 changes: 1 addition & 1 deletion contracts/multisig/tests/multisig_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<multisig::AbiProvider, _>(
"file:output/multisig.wasm",
Expand Down
8 changes: 4 additions & 4 deletions contracts/multisig/tests/multisig_whitebox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand All @@ -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
Expand All @@ -186,7 +186,7 @@ fn call_propose(
opt_endpoint,
boxed_bytes_vec_to_managed(call_data.arguments).into(),
)
},
}
ActionRaw::SCDeployFromSource {
amount,
source,
Expand Down
2 changes: 1 addition & 1 deletion contracts/order-book/pair/tests/pair_scenario_rs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6b13b27

Please sign in to comment.