CIP-30 getUtxos fails for a wallet holding a Byron-address UTxO

Offen
#738 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

cip30UtxoFromCBORHex cannot decode an output whose address is a Byron address, and cip30Wallet maps every UTxO through it, so a single Byron UTxO makes the whole getUtxos call fail with Failed to parse wallet UTxOs. The wallet then has no usable UTxOs, including its Shelley ones.

The decoder fails in TransactionOutput.FromCBORBytes on the address. Checked on main with a real output, de26b22e66880b83cd7450fb92856f18242e2375ccfcbf4a04fd41ceb9a81410#0: decoding it alone throws, and a wallet returning it next to a Shelley UTxO fails as a whole.

On 1,273 recent mainnet outputs, the 9 with a Byron address were the only ones that failed. #730 behaves the same; it does not change address decoding.

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.