Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query_registration_detail method (#162)
This PR implements the method taken from Go SDK repo: ``` go func (r *ChainReader) QueryRegistrationDetail( opts *bind.CallOpts, operatorAddress common.Address, ) ([]bool, error) { operatorId, err := r.GetOperatorId(opts, operatorAddress) if err != nil { return nil, err } value, err := r.registryCoordinator.GetCurrentQuorumBitmap(opts, operatorId) if err != nil { return nil, err } numBits := value.BitLen() var quorums []bool for i := 0; i < numBits; i++ { quorums = append(quorums, value.Int64()&(1<<i) != 0) } return quorums, nil } ``` --------- Co-authored-by: supernovahs <[email protected]>
- Loading branch information