Skip to content

Commit

Permalink
chore(auth): return accId in error (#17903)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Sep 27, 2023
1 parent 0c750db commit 6ac0abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ac0abd

Please sign in to comment.