Page MenuHomePhabricator

[Cashtab] [BCH deprecation] Pt 1/2 - Implement local isCashAddress validation logic
ClosedPublic

Authored by emack on Oct 28 2022, 12:15.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

T2370

As a prerequisite to deprecating BCH.Address.isCashAddress, this diff implements a local function to replicate this validation.

Test Plan

npm test and ensure unit tests passes
npm start
send a simple XEC tx and observe the 'change address parsing in bchJsCheck matches localCheck' console log is displayed

Diff Detail

Repository
rABC Bitcoin ABC
Branch
deprecateIsCashAddress
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20752
Build 41168: Build Diffcashtab-tests
Build 41167: arc lint + arc unit

Event Timeline

emack requested review of this revision.Oct 28 2022, 12:15
emack retitled this revision from [Cashtab] Part 1 - Implement local isCashAddress validation logic to [Cashtab] [BCH deprecation] Part 1 - Implement local isCashAddress validation logic.Oct 28 2022, 12:16
emack retitled this revision from [Cashtab] [BCH deprecation] Part 1 - Implement local isCashAddress validation logic to [Cashtab] [BCH deprecation] Pt 1/2 - Implement local isCashAddress validation logic.Oct 28 2022, 12:26
This revision is now accepted and ready to land.Oct 28 2022, 16:36