fix mainnet eth1 for mainnet eth2 (#2819)

This commit is contained in:
Jacek Sieka 2021-08-25 20:10:54 +02:00 committed by GitHub
parent 43a976f89b
commit fb42a3af9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -143,7 +143,8 @@ proc loadEth2NetworkMetadata*(path: string): Eth2NetworkMetadata
Eth2NetworkMetadata(
incompatible: false,
eth1Network: some goerli,
eth1Network: some(
if "mainnet" in path: Eth1Network.mainnet else: Eth1Network.goerli),
cfg: runtimeConfig,
bootstrapNodes: bootstrapNodes,
depositContractDeployedAt: depositContractDeployedAt,