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

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot] 2023-09-27 13:13:11 +00:00 committed by GitHub
parent 9e26bf541d
commit f4796c9a14
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)
}
return &types.QueryAccountAddressByIDResponse{AccountAddress: address.String()}, nil