From 77d84a2e53d889ffc77163422ea1f01295c1e1ad Mon Sep 17 00:00:00 2001 From: Bowen Li Date: Tue, 17 Sep 2024 18:58:41 -0700 Subject: [PATCH] fix: replace goerli with holesky in fork tests --- .env.example | 3 +-- README.md | 2 +- config.yml | 4 ++-- source-env.sh | 12 ++++++------ 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 948f166c8..0d84d7bab 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,4 @@ RPC_MAINNET="https://eth.llamarpc.com" # RPC_MAINNET="https://mainnet.infura.io/v3/API-KEY" -RPC_GOERLI="https://ethereum-goerli.publicnode.com" -RPC_HOLESKY="" +RPC_HOLESKY="https://ethereum-holesky-rpc.publicnode.com" ETHERSCAN_API_KEY="API-KEY" diff --git a/README.md b/README.md index aef3b3676..7a620bdc6 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ We have a few fork tests against ETH mainnet. Passing these requires the environ Additionally, to run all tests in a forked environment, [install yq](https://mikefarah.gitbook.io/yq/v/v3.x/). Then, set up your environment using this script to read from `config.yml`: -`source source-env.sh [goerli|local]` +`source source-env.sh [holesky|local]` Then run the tests: diff --git a/config.yml b/config.yml index ee3597b20..857367e4f 100644 --- a/config.yml +++ b/config.yml @@ -1,5 +1,5 @@ -goerli: - CHAIN_ID: 5 +holesky: + CHAIN_ID: 17000 EXECUTOR_MULTISIG: "0x3d9C2c2B40d890ad53E27947402e977155CD2808" FOUNDRY_FUZZ_RUNS: 1 local: diff --git a/source-env.sh b/source-env.sh index 027338c7e..e19f47fba 100644 --- a/source-env.sh +++ b/source-env.sh @@ -9,7 +9,7 @@ fi # Check for arguments if [ "$#" -ne 1 ]; then - echo "Usage: $0 [goerli|local]" + echo "Usage: $0 [holesky|local]" return 1 fi @@ -17,17 +17,17 @@ fi CONFIG_FILE="config.yml" case $1 in - goerli) - CHAIN_ID=$(yq e '.goerli.CHAIN_ID' $CONFIG_FILE) - EXECUTOR_MULTISIG=$(yq e '.goerli.EXECUTOR_MULTISIG' $CONFIG_FILE) - FOUNDRY_FUZZ_RUNS=$(yq e '.goerli.FOUNDRY_FUZZ_RUNS' $CONFIG_FILE) + holesky) + CHAIN_ID=$(yq e '.holesky.CHAIN_ID' $CONFIG_FILE) + EXECUTOR_MULTISIG=$(yq e '.holesky.EXECUTOR_MULTISIG' $CONFIG_FILE) + FOUNDRY_FUZZ_RUNS=$(yq e '.holesky.FOUNDRY_FUZZ_RUNS' $CONFIG_FILE) ;; local) CHAIN_ID=$(yq e '.local.CHAIN_ID' $CONFIG_FILE) FOUNDRY_FUZZ_RUNS=$(yq e '.local.FOUNDRY_FUZZ_RUNS' $CONFIG_FILE) ;; *) - echo "Invalid argument. Usage: $0 [goerli|local]" + echo "Invalid argument. Usage: $0 [holesky|local]" return 1 ;; esac