Skip to content

Commit

Permalink
Fix deployment of child chain upgrade action
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Aug 26, 2024
1 parent 64c026c commit 9d55ff3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions espresso-tests/migration-test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,18 @@ docker stop nitro-testnode-sequencer-1
cd $TESTNODE_DIR
./espresso-tests/create-espresso-integrated-nitro-node.bash

#echo for debug
echo "Deploying ArbOS action"

#forge script to deploy the Espresso ArbOS upgrade acdtion.
forge script --chain $L2_CHAIN_NAME contracts/child-chain/arbos-upgrade/DeployArbOSUpgradeAction.s.sol:DeployArbOSUpgradeAction --rpc-url $L2_RPC_URL --broadcast -vvvv

ARBOS_UPGRADE_ACTION=$(cat broadcast/DeployEspressoOspMigrationAction.s.sol/412346/run-latest.json | jq -r '.transactions[0].contractAddress')
# Wait for RPC_URL to be available
while ! curl -s $L2_RPC_URL > /dev/null; do
echo "Waiting for $L2_RPC_URL to be available..."
sleep 5
done


echo "Deploying ArbOS action"
cd $ORBIT_ACTIONS_DIR
forge script --chain $L2_CHAIN_NAME contracts/child-chain/arbos-upgrade/DeployArbOSUpgradeAction.s.sol:DeployArbOSUpgradeAction --rpc-url $L2_RPC_URL --broadcast -vvvv
ARBOS_UPGRADE_ACTION=$(cat broadcast/DeployArbOSUpgradeAction.s.sol/412346/run-latest.json | jq -r '.transactions[0].contractAddress')
echo "Deployed ArbOSUpgradeAction at $ARBOS_UPGRADE_ACTION"

#check the upgrade happened

Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
default = pkgs.mkShell {
packages = with pkgs; [
bashInteractive
jq
nodejs
yarn
openssl # used by test-node.bash
Expand Down

0 comments on commit 9d55ff3

Please sign in to comment.