HomePhabricator

[Cashtab] Better tests for opreturn target output generating functions

Description

[Cashtab] Better tests for opreturn target output generating functions

Summary: Unit tests should match the exact expected output. Neglected previously as did not realize could do it easily enough (while maintaining an easy-to-read hex string for the desired OP_RETURN) by generating the Buffer in the mocks.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16342

Details

Provenance
bytesofmanAuthored on Jun 17 2024, 16:24
bytesofmanPushed on Jun 17 2024, 19:10
Reviewer
Restricted Project
Differential Revision
D16342: [Cashtab] Better tests for opreturn target output generating functions
Parents
rABCd43ea4a3c8e6: [ecashaddrjs] Fix change log section of README
Branches
Unknown
Tags
Unknown