Page MenuHomePhabricator

[Cashtab] Move parseAddressForParams out of Ticker.js
ClosedPublic

Authored by emack on Jun 24 2023, 13:19.

Details

Summary

Similar to D14102, this diff moves the parseAddressForParams function out of Ticker.js and into cashMethods.

Test Plan
  • grep -r parseAddressForParams src/ and ensure all import statements are referring to cashMethods.js rather than Ticker.js
  • npm test
  • npm start
  • regression test scanning of a valid and invalid QR code for address (use https://d14115.netlify.app/ on phone)
  • regression test signing and verifying signatures
  • regression test sending a token to an ecash address
  • regression test sending XEC to an ecash address

Diff Detail

Repository
rABC Bitcoin ABC
Branch
parseAddressForParams_config
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24177
Build 47964: Build Diffcashtab-tests
Build 47963: arc lint + arc unit

Event Timeline

emack requested review of this revision.Jun 24 2023, 13:19
Fabien requested changes to this revision.Jun 24 2023, 15:26
Fabien added a subscriber: Fabien.

This function is moved, and still there is no test change. This is an evidence that a unit test is missing.
Add these tests first then move the code, so the reviewer can be confident that there is no subtle change happening during the move because the test keeps passing.

This revision now requires changes to proceed.Jun 24 2023, 15:26
emack edited the test plan for this revision. (Show Details)

merged with unit tests from D14117 and moved these tests to cashMethods.test.js

This revision is now accepted and ready to land.Jun 26 2023, 15:07