diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2019-08-07 05:53:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-07 05:53:50 +0800 |
commit | db08881d4527e8a037f401ef22b849e52152864f (patch) | |
tree | 6032d7a4ae67371889eece1d8490c26d5a119dd5 /development/run-ganache | |
parent | 4139019d0f4dd83f56da400ca7e0e6d1976d1716 (diff) | |
parent | 86ad9564a064fd6158dab6a3c9e5b10614ef6e68 (diff) | |
download | tangerine-wallet-browser-7.0.0.tar tangerine-wallet-browser-7.0.0.tar.gz tangerine-wallet-browser-7.0.0.tar.bz2 tangerine-wallet-browser-7.0.0.tar.lz tangerine-wallet-browser-7.0.0.tar.xz tangerine-wallet-browser-7.0.0.tar.zst tangerine-wallet-browser-7.0.0.zip |
Merge pull request #6969 from MetaMask/developv7.0.0
Master Version Bump
Diffstat (limited to 'development/run-ganache')
-rwxr-xr-x | development/run-ganache | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/development/run-ganache b/development/run-ganache new file mode 100755 index 000000000..794a35084 --- /dev/null +++ b/development/run-ganache @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +set -e +set -u +set -o pipefail + +ganache_cli="$(npm bin)/ganache-cli" +seed_phrase="${GANACHE_SEED_PHRASE:-phrase upgrade clock rough situate wedding elder clever doctor stamp excess tent}" + +_term () { + printf '%s\n' "Received SIGTERM, sending SIGKILL to Ganache" + kill -KILL "$child" 2>/dev/null + exit 42 +} + +_int () { + printf '%s\n' "Received SIGINT, sending SIGKILL to Ganache" + kill -KILL "$child" 2>/dev/null + exit 42 +} + +trap _term SIGTERM +trap _int SIGINT + +$ganache_cli --noVMErrorsOnRPCResponse --networkId 5777 --mnemonic "$seed_phrase" ${GANACHE_ARGS:-} & + +child=$! +wait "$child" |