Skip to content

Commit

Permalink
Add RIVER_ANVIL_OPTS env var to set extra options for running anvil (#92
Browse files Browse the repository at this point in the history
)

`RIVER_ANVIL_OPTS=--silent ./scripts/bc-all-start.sh`
  • Loading branch information
sergekh2 authored Jun 2, 2024
1 parent 40bc570 commit 9820892
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/start-local-basechain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ RIVER_BLOCK_TIME="${RIVER_BLOCK_TIME:-1}"

# If RIVER_BLOCK_TIME is set assign "--block-time XX" to $OPTS
if [ -z ${RIVER_BLOCK_TIME+x} ]; then
OPTS=""
OPTS="${RIVER_ANVIL_OPTS:-}"
else
OPTS="--block-time $RIVER_BLOCK_TIME"
OPTS="--block-time $RIVER_BLOCK_TIME ${RIVER_ANVIL_OPTS:-}"
fi

anvil --chain-id 31337 --port 8545 $OPTS
4 changes: 2 additions & 2 deletions scripts/start-local-riverchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ RIVER_BLOCK_TIME="${RIVER_BLOCK_TIME:-1}"

# If RIVER_BLOCK_TIME is set assign "--block-time XX" to $OPTS
if [ -z ${RIVER_BLOCK_TIME+x} ]; then
OPTS=""
OPTS="${RIVER_ANVIL_OPTS:-}"
else
OPTS="--block-time $RIVER_BLOCK_TIME"
OPTS="--block-time $RIVER_BLOCK_TIME ${RIVER_ANVIL_OPTS:-}"
fi

echo "Block time: $RIVER_BLOCK_TIME"
Expand Down

0 comments on commit 9820892

Please sign in to comment.