Updates to tests and local testnet for Ganache 7 (#3056)

## Issue Addressed

#2961

## Proposed Changes

-- update `--chainId` -> `--chain.chainId`
-- remove `--keepAliveTimeout`
-- fix log to listen for
-- rename `ganache-cli` to `ganache` everywhere


Co-authored-by: realbigsean <sean@sigmaprime.io>
This commit is contained in:
realbigsean
2022-03-20 22:48:14 +00:00
parent 9bc9527998
commit ae5b141dc4
12 changed files with 48 additions and 43 deletions

View File

@@ -4,7 +4,7 @@ set -Eeuo pipefail
source ./vars.env
exec ganache-cli \
exec ganache \
--defaultBalanceEther 1000000000 \
--gasLimit 1000000000 \
--accounts 10 \
@@ -12,4 +12,4 @@ exec ganache-cli \
--port 8545 \
--blockTime $SECONDS_PER_ETH1_BLOCK \
--networkId "$NETWORK_ID" \
--chainId "$NETWORK_ID"
--chain.chainId "$NETWORK_ID"

View File

@@ -86,10 +86,10 @@ execute_command_add_PID() {
echo "$!" >> $PID_FILE
}
# Start ganache-cli, setup things up and start the bootnode.
# Start ganache, setup things up and start the bootnode.
# The delays are necessary, hopefully there is a better way :(
# Delay to let ganache-cli to get started
# Delay to let ganache to get started
execute_command_add_PID ganache_test_node.log ./ganache_test_node.sh
sleeping 10