Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Jul 4, 2024
1 parent 822a613 commit f44b62e
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 @@ -84,6 +84,10 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error {
}

ethClient, err := eth.NewClient(config.RPCUrl)
if err != nil {
return eigenSdkUtils.WrapError("failed to create new eth client", err)
}

logger := logging.NewTextSLogger(os.Stdout, &logging.SLoggerOptions{})

elReader, err := elcontracts.NewReaderFromConfig(
Expand Down Expand Up @@ -180,7 +184,7 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error {
TokenTreeProofs: claim.TokenTreeProofs,
TokenLeaves: convertClaimTokenLeaves(claim.TokenLeaves),
}
_, err = eLWriter.ProcessClaim(ctx, elClaim, config.EarnerAddress)
_, err = eLWriter.ProcessClaim(ctx, elClaim, config.RecipientAddress)
if err != nil {
return eigenSdkUtils.WrapError("failed to process claim", err)
}
Expand Down Expand Up @@ -264,6 +268,7 @@ func readAndValidateClaimConfig(cCtx *cli.Context) (*ClaimConfig, error) {
ChainID: chainID,
ProofStoreBaseURL: proofStoreBaseURL,
Environment: env,
RecipientAddress: recipientAddress,
}, nil
}

Expand Down

0 comments on commit f44b62e

Please sign in to comment.