Add queries to get participant by laconic or nitro address #44
@ -63,7 +63,7 @@ func (qs queryServer) GetParticipantByNitroAddress(
|
|||||||
ctx := sdk.UnwrapSDKContext(c)
|
ctx := sdk.UnwrapSDKContext(c)
|
||||||
|
|
||||||
if req.NitroAddress == "" {
|
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)
|
participant, err := qs.k.GetParticipantByNitroAddress(ctx, req.NitroAddress)
|
||||||
|
Loading…
Reference in New Issue
Block a user