Page MenuHomePhabricator

[Cashtab] Replace currency object with appConfig for everything except alias settings
ClosedPublic

Authored by bytesofman on Aug 11 2023, 20:57.

Details

Summary

T3261

Replace currency object with appConfig for remaining settings that are not related to alias implementation

Test Plan

npm test, confirm organization is an improvement, does not introduce new ambiguities

Diff Detail

Repository
rABC Bitcoin ABC
Branch
ticker-be-gone
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24763
Build 49118: Build Diffcashtab-tests
Build 49117: arc lint + arc unit

Event Timeline

cashtab/src/components/Common/Notifications.js
194 ↗(On Diff #41791)

currency isn't even being used here, the function is using the currency constant above. Again, existing bug, but no point in persisting it to not use new appConfig param

cashtab/src/utils/__tests__/validation.test.js
270 ↗(On Diff #41791)

Note that there is no currency.tokenDecimals -- not sure where this artifact error was introduced, but no point in persisting it to the equally non-existent appConfig.tokenDecimals

This revision is now accepted and ready to land.Aug 14 2023, 08:39