Skip to content
This repository was archived by the owner on May 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:

- name: Run anvil
run: |
anvil &
anvil --code-size-limit 300000 &

- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ VENV_BIN := $(VENV_DIR)/bin
PYTHON := $(VENV_BIN)/python
PIP := $(VENV_BIN)/pip
SOLC_SELECT := $(VENV_BIN)/solc-select
SOLC := $(VENV_BIN)/solc
SOLC ?= $(VENV_BIN)/solc

# =============================================================================
# Virtual Environment Setup
Expand All @@ -40,7 +40,7 @@ setup-venv:
$(PIP) install solc-select
$(SOLC_SELECT) install 0.8.24
$(SOLC_SELECT) use 0.8.24
$(VENV_BIN)/solc --version
$(SOLC) --version

# =============================================================================
# ASDF Version Manager Setup
Expand Down
6 changes: 6 additions & 0 deletions src/setup_scripts/upgrade_l1_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use ethers::prelude::{abigen, Bytes, SignerMiddleware};
use ethers::providers::{Http, Provider};
use ethers::signers::{LocalWallet, Signer};
use ethers::types::{Address, U256};
use tokio::time::{sleep, Duration};

use crate::ConfigFile;

Expand Down Expand Up @@ -71,20 +72,25 @@ pub async fn upgrade_l1_bridge(ethereum_bridge_address: Address, config_file: &C
.send()
.await?;
log::debug!("New ETH bridge add_implementation ✅");
sleep(Duration::from_secs(20)).await;
eth_bridge_proxy_client.upgrade_to(new_eth_bridge_client.address(), call_data, false).send().await?;
log::debug!("New ETH bridge upgrade_to ✅");
sleep(Duration::from_secs(20)).await;
new_eth_bridge_client
.register_app_role_admin(Address::from_str(&config_file.l1_deployer_address.clone())?)
.send()
.await?;
sleep(Duration::from_secs(20)).await;
new_eth_bridge_client
.register_governance_admin(Address::from_str(&config_file.l1_deployer_address.clone())?)
.send()
.await?;
sleep(Duration::from_secs(20)).await;
new_eth_bridge_client
.register_app_governor(Address::from_str(&config_file.l1_deployer_address.clone())?)
.send()
.await?;
sleep(Duration::from_secs(20)).await;
new_eth_bridge_client
.set_max_total_balance(
Address::from_str("0x0000000000000000000000000000000000455448").unwrap(),
Expand Down
Loading