Skip to content

Commit

Permalink
enable mainnet on the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Aug 22, 2024
1 parent 6e67826 commit 8941e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/core/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ func GetClients(ctx context.Context, node, beaconNodeUri string, enableLogs bool
return nil, nil, nil, fmt.Errorf("failed to fetch chain id: %w", err)
}

if chainId == nil || chainId.Int64() != 17000 {
return nil, nil, nil, errors.New("this tool only supports the Holesky network")
if chainId == nil || (chainId.Int64() != 17000 && chainId.Int64() != 0) {
return nil, nil, nil, errors.New("this tool only supports the Holesky and Mainnet Ethereum Networks")
}

beaconClient, err := GetBeaconClient(beaconNodeUri, enableLogs)
Expand Down

0 comments on commit 8941e97

Please sign in to comment.