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

Aperta
#738 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
TypeScript
Stelle
22
Fork
34
Merge medio
16h 53m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntersectMBO/evolution-sdk

Tutte le issue di IntersectMBO/evolution-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.