2022-07-29 15:00:32 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
# This script forks a chain using anvil with the mnemonic that is used in the
|
|
|
|
# testing environment.
|
|
|
|
|
2024-10-06 13:39:20 -07:00
|
|
|
CHAIN_NAME="${1:-}"
|
|
|
|
|
|
|
|
if [ -z "$CHAIN_NAME" ]; then
|
2022-07-29 15:00:32 -07:00
|
|
|
echo "Usage: $0 <chain name>" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2023-05-06 02:02:05 -07:00
|
|
|
DOCKER_ARGS="-p 8545:8545" ./foundry anvil --host 0.0.0.0 --base-fee 0 --fork-url $(worm info rpc mainnet $CHAIN_NAME) --mnemonic "myth like bonus scare over problem client lizard pioneer submit female collect"
|