Skip to content

Commit

Permalink
fix: fix the mainnet url
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Aug 15, 2024
1 parent 18af34e commit a667c9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/rewards/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ func readAndValidateClaimConfig(cCtx *cli.Context, logger logging.Logger) (*Clai
logger.Debugf("Failed to get signer config: %s", err)
}

// TODO(shrimalmadhur): Fix to make sure correct S3 bucket is used. Clean up later
if network == utils.MainnetNetworkName {
network = "ethereum"
}

return &ClaimConfig{
Network: network,
RPCUrl: rpcUrl,
Expand All @@ -413,7 +418,7 @@ func getEnvFromNetwork(network string) string {
case utils.HoleskyNetworkName:
return "testnet"
case utils.MainnetNetworkName:
return "prod"
return "mainnet"
default:
return "local"
}
Expand Down

0 comments on commit a667c9c

Please sign in to comment.