Skip to content

Commit

Permalink
check chainId == 1, not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Aug 23, 2024
1 parent 8941e97 commit 0449935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/core/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ 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 && chainId.Int64() != 0) {
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")
}

Expand Down

0 comments on commit 0449935

Please sign in to comment.