Skip to content

Commit 6a9a999

Browse files
committed
chore(e2e): run nitro addressbook setup only on localnitro networks
Signed-off-by: Tomás Migone <[email protected]>
1 parent d9977b5 commit 6a9a999

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/e2e

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ function configure_bridge () {
8989
local L2_MNEMONIC=${L2_MNEMONIC:-"urge never interest human any economy gentle canvas anxiety pave unlock find"}
9090

9191
# Copy required arbitrum contract addresses to the local arbitrum address book
92-
npx hardhat nitro:address-book-setup --deployment-file "$ARBITRUM_DEPLOYMENT_FILE" --arbitrum-address-book "$ARBITRUM_ADDRESS_BOOK"
92+
if [[ "$L1_NETWORK" == *"localnitro"* ]]; then
93+
npx hardhat nitro:address-book-setup --deployment-file "$ARBITRUM_DEPLOYMENT_FILE" --arbitrum-address-book "$ARBITRUM_ADDRESS_BOOK"
94+
fi
9395

9496
# Configure the bridge
9597
./cli/cli.ts -a "$ADDRESS_BOOK" -p "$L2_RPC" -m "$L2_MNEMONIC" -n 2 -r "$ARBITRUM_ADDRESS_BOOK" protocol configure-l2-bridge "$L1_CHAIN_ID"
@@ -122,7 +124,7 @@ function test_e2e_scenarios () {
122124
npx hardhat e2e:scenario open-allocations --network "$NETWORK" --graph-config "$GRAPH_CONFIG" --address-book "$ADDRESS_BOOK"
123125

124126
# skip close-allocations for arbitrum testnodes as we can't advance epoch
125-
if [[ "$NETWORK" != *"localnitro"* ]]; then
127+
if [[ "$NETWORK" != *"localnitro"* ]]; then
126128
npx hardhat e2e:scenario close-allocations --network "$NETWORK" --graph-config "$GRAPH_CONFIG" --address-book "$ADDRESS_BOOK"
127129
fi
128130
}

0 commit comments

Comments
 (0)