Skip to content

Commit

Permalink
second try for fixing file path
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiuosvat committed Aug 21, 2024
1 parent ca2cad5 commit bb556e8
Show file tree
Hide file tree
Showing 23 changed files with 51 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/scenarios/potlock-accept-pot.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/scenarios/potlock-add-pot.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/scenarios/potlock-deploy.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/scenarios/potlock-fail-add-pot.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/scenarios/potlock-remove-pot.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"id": "",
"tx": {
"from": "address:owner",
"contractCode": "mxsc:output/potlock.mxsc.json",
"contractCode": "mxsc:../output/potlock.mxsc.json",
"arguments": [
"0x61646d696e5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f"
],
Expand Down
2 changes: 1 addition & 1 deletion contracts/potlock/tests/potlock_blackbox_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use potlock::potlock_storage::{PotlockId, ProjectId};
mod potlock_proxy;

const POTLOCK_ADDRESS: TestSCAddress = TestSCAddress::new("potlock");
const POTLOCK_CODE_PATH: MxscPath = MxscPath::new("output/potlock.mxsc.json");
const POTLOCK_CODE_PATH: MxscPath = MxscPath::new("../output/potlock.mxsc.json");
const OWNER_ADDRESS: TestAddress = TestAddress::new("owner");
const ADMIN_ADDRESS: TestAddress = TestAddress::new("admin");
const POT_PROPOSER_ADDRESS: TestAddress = TestAddress::new("pot_proposer");
Expand Down
15 changes: 15 additions & 0 deletions contracts/potlock/tests/potlock_scenario_go_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ fn potlock_donate_to_pot_go() {
world().run("scenarios/potlock-donate-to-pot.scen.json");
}

#[test]
fn potlock_donate_to_pot_different_tokens_go() {
world().run("scenarios/potlock-donate-to-pot-different-tokens.scen.json");
}

#[test]
fn potlock_donate_to_pot_same_token_go() {
world().run("scenarios/potlock-donate-to-pot-same-token.scen.json");
}

#[test]
fn potlock_donate_to_project_go() {
world().run("scenarios/potlock-donate-to-project.scen.json");
Expand Down Expand Up @@ -84,6 +94,11 @@ fn potlock_fail_remove_pot_go() {
world().run("scenarios/potlock-fail-remove-pot.scen.json");
}

#[test]
fn potlock_multiple_change_fees_go() {
world().run("scenarios/potlock-multiple-change-fees.scen.json");
}

#[test]
fn potlock_remove_pot_go() {
world().run("scenarios/potlock-remove-pot.scen.json");
Expand Down
18 changes: 15 additions & 3 deletions contracts/potlock/tests/potlock_scenario_rs_test.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
use multiversx_sc_scenario::*;
use multiversx_sc_scenario::imports::MxscPath;

const _: MxscPath = MxscPath::new("output/potlock.mxsc.json");

fn world() -> ScenarioWorld {
let mut blockchain = ScenarioWorld::new();
Expand Down Expand Up @@ -50,6 +47,16 @@ fn potlock_donate_to_pot_rs() {
world().run("scenarios/potlock-donate-to-pot.scen.json");
}

#[test]
fn potlock_donate_to_pot_different_tokens_rs() {
world().run("scenarios/potlock-donate-to-pot-different-tokens.scen.json");
}

#[test]
fn potlock_donate_to_pot_same_token_rs() {
world().run("scenarios/potlock-donate-to-pot-same-token.scen.json");
}

#[test]
fn potlock_donate_to_project_rs() {
world().run("scenarios/potlock-donate-to-project.scen.json");
Expand Down Expand Up @@ -90,6 +97,11 @@ fn potlock_fail_remove_pot_rs() {
world().run("scenarios/potlock-fail-remove-pot.scen.json");
}

#[test]
fn potlock_multiple_change_fees_rs() {
world().run("scenarios/potlock-multiple-change-fees.scen.json");
}

#[test]
fn potlock_remove_pot_rs() {
world().run("scenarios/potlock-remove-pot.scen.json");
Expand Down

0 comments on commit bb556e8

Please sign in to comment.