Skip to content

How to include DepositContract address in the chainspec? #12404

Closed Answered by mattsse
debjit-bw asked this question in Help
Discussion options

You must be logged in to vote

there is, the from genesis impl does this:

let deposit_contract = genesis.config.deposit_contract_address.map(|address| {
DepositContract { address, block: 0, topic: MAINNET_DEPOSIT_CONTRACT.topic }
});

and initializes the field on chainspec:

deposit_contract,

or for statics:

// https://etherscan.io/tx/0xe75fb554e433e03763a1560646ee22dcb74e5274b34c5ad644e7c0f619a7e1d0
deposit_contract: Some(DepositContract::new(
MAINNET_DEPOSIT_CONTRACT_ADDRESS,

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by debjit-bw
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants