Skip to content

Commit

Permalink
claim command only in testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Jul 10, 2024
1 parent 6ca74e4 commit 143bd1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/rewards/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error {
return eigenSdkUtils.WrapError("failed to read and validate claim config", err)
}
cCtx.App.Metadata["network"] = config.ChainID.String()
if config.ChainID.Int64() == utils.MainnetChainId {
return fmt.Errorf("claim currently unsupported on mainnet")
}

ethClient, err := eth.NewClient(config.RPCUrl)
if err != nil {
Expand Down

0 comments on commit 143bd1d

Please sign in to comment.