Add queries to get participant by laconic or nitro address #44

Merged
nabarun merged 4 commits from iv-participants-by-address into main 2024-07-29 10:28:31 +00:00
Showing only changes of commit 8590c99200 - Show all commits

View File

@ -63,7 +63,7 @@ func (qs queryServer) GetParticipantByNitroAddress(
ctx := sdk.UnwrapSDKContext(c)
if req.NitroAddress == "" {
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "cosmos (laconic) address is required")
return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "nitro address is required")
}
participant, err := qs.k.GetParticipantByNitroAddress(ctx, req.NitroAddress)