Page MenuHomePhabricator

[Cashtab] [experimental] local tests in bitcoincashjs-lib
AbandonedPublic

Authored by bytesofman on Nov 25 2022, 14:18.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

T2730

Local implementation of getECPairFromWIF does not preserve types as required for tx builder to properly create a tx. This issue only occurs in prod (built) version, not in npm start version.

This will be a stacked diff where the library is pulled in and modified locally.

In part 1, we pull in bitcoincashjs-lib unchanged from https://github.com/Permissionless-Software-Foundation/bitcoincashjs-lib

Test Plan

Confirm no other changes but new library copied in

Diff Detail

Repository
rABC Bitcoin ABC
Branch
ecpair-patching-stack
Lint
Lint Passed
SeverityLocationCodeMessage
Auto-Fixweb/bitcoincashjs-lib/README.md:3WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:4WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:7WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:10WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:13WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:16WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:19WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:22WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:25WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:28WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:31WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:34WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:37WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:40WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:43WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:46WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:49WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:52WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:55WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:58WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:61WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:64WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:67WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:70WHITESPACE1Found trailing whitespace(s).
Auto-Fixweb/bitcoincashjs-lib/test/fixtures/core/base58_keys_invalid.json:73WHITESPACE1Found trailing whitespace(s).
Unit
No Test Coverage
Build Status
Buildable 21146
Build 41944: Build Diff
Build 41943: arc lint + arc unit

Event Timeline

Issue is better resolved in webpack. May want to bring this into the monorepo later for further optimizations, but not on this stack.

Made obsolete by D12638