Skip to content

Commit

Permalink
Merge pull request Layr-Labs#139 from Layr-Labs/jb/mainnet
Browse files Browse the repository at this point in the history
Enable Mainnet on the CLI
  • Loading branch information
jbrower95 authored Aug 23, 2024
2 parents 6e67826 + 0449935 commit 4a03391
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() != 1) {
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 4a03391

Please sign in to comment.