Skip to content

Commit

Permalink
fix: include earner address in claim proof logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gpabst committed Nov 15, 2024
1 parent 7db6452 commit 9ac4c77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/rewards/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,15 @@ func generateClaimPayload(
TokenLeaves: convertClaimTokenLeaves(claim.TokenLeaves),
}

logger.Info("Validating claim proof...")
logger.Infof("Validating claim proof for earner %s...", earnerAddress)
ok, err := elReader.CheckClaim(ctx, elClaim)
if err != nil {
return nil, nil, nil, err
}
if !ok {
return nil, nil, nil, errors.New("failed to validate claim")
}
logger.Info("Claim proof validated successfully")
logger.Infof("Claim proof for earner %s validated successfully", earnerAddress)

return &elClaim, claim, accounts, nil
}
Expand Down

0 comments on commit 9ac4c77

Please sign in to comment.