Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
parent
9e26bf541d
commit
f4796c9a14
@ -36,7 +36,7 @@ func (s queryServer) AccountAddressByID(ctx context.Context, req *types.QueryAcc
|
||||
|
||||
address, err := s.k.Accounts.Indexes.Number.MatchExact(ctx, accID)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.NotFound, "account address not found with account number %d", req.Id)
|
||||
return nil, status.Errorf(codes.NotFound, "account address not found with account number %d", accID)
|
||||
}
|
||||
|
||||
return &types.QueryAccountAddressByIDResponse{AccountAddress: address.String()}, nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user