Transaction.toString throws on governance transactions

Offen
#737 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug

A Conway transaction carrying votes or proposals cannot be printed: tx.toString(), a template string or JSON.stringify(tx) throws Do not know how to serialize a BigInt. The transaction decodes, signs and submits normally; only rendering fails.

The toJSON of these body fields still returns bigints:

  • votingProcedures: govActionIndex
  • proposalProcedures: governanceAction.govActionId.govActionIndex, protocolVersion.major, protocolParamUpdate.costModels.*.costs, threshold.numerator

Measured on 528 recent mainnet transactions (80 votes, 110 proposals, the rest ordinary): toString throws on 98, all of them for one of the fields above (80 on govActionIndex in votes, 18 in proposals). Same on main and with #727, which fixes the Plutus data case and does not touch these classes.

To reproduce, decode any mainnet vote transaction with Transaction.fromCBORHex and call toString().

Vorherrschende Sprache
TypeScript
Sterne
22
Forks
34
Ø Merge
16 Std. 53 Min.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus IntersectMBO/evolution-sdk

Alle Issues in IntersectMBO/evolution-sdk

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.