Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update l2 erc20 bridge address in updater as well #3500

Merged
merged 3 commits into from
Jan 17, 2025
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
3 changes: 2 additions & 1 deletion core/node/api_server/src/web3/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,9 @@ impl BridgeAddressesHandle {
self.0.write().await.l1_shared_default_bridge = Some(l1_shared_bridge);
}

pub async fn update_l2_shared_bridge(&self, l2_shared_bridge: Address) {
pub async fn update_l2_bridges(&self, l2_shared_bridge: Address) {
self.0.write().await.l2_shared_default_bridge = Some(l2_shared_bridge);
self.0.write().await.l2_erc20_default_bridge = Some(l2_shared_bridge);
}

pub async fn read(&self) -> api::BridgeAddresses {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl L1UpdaterInner {
// - To not undo the previous change in case of a network error
if info.should_use_l2_asset_router {
self.bridge_address_updater
.update_l2_shared_bridge(L2_ASSET_ROUTER_ADDRESS)
.update_l2_bridges(L2_ASSET_ROUTER_ADDRESS)
.await;
}
}
Expand Down
Loading