Skip to content

Commit 65aec61

Browse files
committed
fix: ethereum startup script
1 parent bf3603d commit 65aec61

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Makefile.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CARGO_MAKE_CLIPPY_ARGS = "--all-features -- -D warnings"
55
[tasks.pre-test]
66
script = [
77
"npm install",
8-
"./scripts/ethereum.sh"
8+
"../scripts/ethereum.sh"
99
]
1010

1111
[tasks.dev-test-flow]

scripts/ethereum.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ start_testrpc(){
2020
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,9000000000000000000000000000"
2121
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,9000000000000000000000000000"
2222
)
23-
node_modules/.bin/ganache-cli --port $testrpc_port --gasLimit 0xfffffffffffff "${accounts[@]}" > /dev/null &
23+
../node_modules/.bin/ganache-cli --port $testrpc_port --gasLimit 0xfffffffffffff "${accounts[@]}" > /dev/null &
2424
testrpc_pid=$!
2525
}
2626

@@ -29,7 +29,6 @@ if testrpc_running; then
2929
else
3030
echo "Starting our own testrpc instance"
3131
start_testrpc
32-
fi
33-
34-
# the ganache-cli need time to start up
35-
sleep 5
32+
# the ganache-cli need time to start up
33+
sleep 5
34+
fi

0 commit comments

Comments
 (0)