Skip to content

Commit

Permalink
BFT-504: Use the governor address to own the consensus registry
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Aug 22, 2024
1 parent 418ea7e commit 577fa34
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use crate::{traits::ZkToolboxConfig, ChainConfig};

impl ZkToolboxConfig for DeployL2ContractsInput {}

/// Fields corresponding to `contracts/l1-contracts/deploy-script-config-template/config-deploy-l2-config.toml`
/// which are read by `contracts/l1-contracts/deploy-scripts/DeployL2Contracts.sol`.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DeployL2ContractsInput {
pub era_chain_id: L2ChainId,
Expand All @@ -14,6 +16,7 @@ pub struct DeployL2ContractsInput {
pub bridgehub: Address,
pub governance: Address,
pub erc20_bridge: Address,
pub consensus_registry_owner: Address,
}

impl DeployL2ContractsInput {
Expand All @@ -27,6 +30,7 @@ impl DeployL2ContractsInput {
bridgehub: contracts.ecosystem_contracts.bridgehub_proxy_addr,
governance: wallets.governor.address,
erc20_bridge: contracts.bridges.erc20.l1_address,
consensus_registry_owner: wallets.governor.address,
})
}
}

0 comments on commit 577fa34

Please sign in to comment.