chore(auth): return accId in error (#17903)
This commit is contained in:
parent
0c750dbd58
commit
6ac0abde37
@ -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)
|
||||
}
|
||||
|
||||
addr, err := s.k.addressCodec.BytesToString(address)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user