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

This commit is contained in:
Marko
2023-09-27 12:58:23 +00:00
committed by GitHub
parent 0c750dbd58
commit 6ac0abde37
+1 -1
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)