chore(auth): return accId in error (#17903)

This commit is contained in:
Marko 2023-09-27 14:58:23 +02:00 committed by GitHub
parent 0c750dbd58
commit 6ac0abde37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)