Skip to content

Commit

Permalink
add checkclaim method
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Sep 18, 2024
1 parent 9b3429c commit b8dd9af
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 b8dd9af

Please sign in to comment.