Skip to content

Commit

Permalink
add another method
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Aug 15, 2024
1 parent d06789b commit b0f0958
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,11 @@ func (r *ChainReader) GetCurrentClaimableDistributionRoot(

return r.rewardsCoordinator.GetCurrentClaimableDistributionRoot(opts)
}

func (r *ChainReader) GetRootIndexFromHash(opts *bind.CallOpts, rootHash [32]byte) (uint32, error) {
if r.rewardsCoordinator == nil {
return 0, errors.New("RewardsCoordinator contract not provided")
}

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

0 comments on commit b0f0958

Please sign in to comment.