Depends on D12306
As per T2503
Refactor the burnToken function to utilize the newly landed generateTxInput & generateTxOutput utility functions, as well as the new approach of signing input UTXOs, building tx and broadcasting via the chronik client.
Differential D12307
[Cashtab] [Chronik] [Tx Gen] Token transaction refactor - part 3 burnToken Authored by emack on Oct 19 2022, 13:53. Tags None Subscribers None
Details
Depends on D12306 As per T2503 Refactor the burnToken function to utilize the newly landed generateTxInput & generateTxOutput utility functions, as well as the new approach of signing input UTXOs, building tx and broadcasting via the chronik client. npm start
Diff Detail
Event TimelineComment Actions Need to figure out why chronik is getting confused e.g. attempting to broadcast a burn 1 x HIP token tx to chronik but it seems to be adding 2 decimal places to it. Comment Actions Setting skipSlpCheck to true in order to bypass the chronik safety mechanism in place to avoid accidental token burns. Comment Actions Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Failed tests logs: ====== CashTab Unit Tests: useBCH hook Throws error attempting to burn an eToken ID that is not within the wallet's utxo ======
Error: expect(received).toStrictEqual(expected) // deep equality
Expected: [Error: No token UTXOs for the specified token could be found.]
Received: [Error: Invalid token tx input parameter]
at Object.<anonymous> (/work/web/cashtab/src/hooks/__tests__/useBCH.test.js:262:29)
at processTicksAndRejections (node:internal/process/task_queues:94:5)Each failure log is accessible here: |