Skip to content

Commit

Permalink
feat: add checkclaim method (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Sep 18, 2024
1 parent 1b92e0f commit 4e61a1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,14 @@ func (r *ChainReader) GetRootIndexFromHash(opts *bind.CallOpts, rootHash [32]byt

return r.rewardsCoordinator.GetRootIndexFromHash(opts, rootHash)
}

func (r *ChainReader) CheckClaim(
opts *bind.CallOpts,
claim rewardscoordinator.IRewardsCoordinatorRewardsMerkleClaim,
) (bool, error) {
if r.rewardsCoordinator == nil {
return false, errors.New("RewardsCoordinator contract not provided")
}

return r.rewardsCoordinator.CheckClaim(opts, claim)
}

0 comments on commit 4e61a1b

Please sign in to comment.