diff options
author | Sonic <sonic@dexon.org> | 2019-04-23 13:28:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-15 22:09:56 +0800 |
commit | 2b2f301c7827bede218b67b2bad8d354a8ef63be (patch) | |
tree | c98d9bd4468c988671541132c7116bcd3a2ffcb9 /build/setup_recovery_env.sh | |
parent | 5638018dcb287c5b176ed408d811d992915ac2af (diff) | |
download | go-tangerine-2b2f301c7827bede218b67b2bad8d354a8ef63be.tar.gz go-tangerine-2b2f301c7827bede218b67b2bad8d354a8ef63be.tar.zst go-tangerine-2b2f301c7827bede218b67b2bad8d354a8ef63be.zip |
test: run smoke test on ganache (#388)
* test: run smoke test on ganache
* Update build/setup_recovery_env.sh
Co-Authored-By: Jsying <sonic@dexon.org>
* Update build/setup_recovery_env.sh
Co-Authored-By: Jsying <sonic@dexon.org>
Diffstat (limited to 'build/setup_recovery_env.sh')
-rwxr-xr-x | build/setup_recovery_env.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/setup_recovery_env.sh b/build/setup_recovery_env.sh new file mode 100755 index 000000000..5586273c8 --- /dev/null +++ b/build/setup_recovery_env.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +accounts_opt="--account=0x`cat ../test/keystore/monkey.key`,100000000000000000000" + +# node key's account +for key in ../test/keystore/test*key; do + accounts_opt+=" --account=0x`cat $key`,1000000000000000000000" +done + +git clone --depth 1 -b master https://github.com/dexon-foundation/governance-abi + +# deploy contract +cd governance-abi +npm ci +./node_modules/.bin/ganache-cli -p 8645 -b 5 $accounts_opt > ../../test/ganache.log 2>&1 & +./node_modules/.bin/truffle migrate --network=smoke |