Page MenuHomePhabricator

[Cashtab] Deprecate parseXecSendValue
ClosedPublic

Authored by bytesofman on Sep 13 2023, 21:22.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC82bfbd8efb80: [Cashtab] Deprecate parseXecSendValue
Summary

Depends on D14480

Deprecate mostly useless function parseXecSendValue. Preserve its validation in its one call site.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack requested changes to this revision.Sep 14 2023, 02:21
emack added a subscriber: emack.
emack added inline comments.
cashtab/src/utils/transactions.js
469 ↗(On Diff #42184)

fromSatoshisToXec already returns a BigNumber so there's no need to convert it to string and then back to BigNumber again.

This revision now requires changes to proceed.Sep 14 2023, 02:21
This revision is now accepted and ready to land.Sep 14 2023, 22:50
This revision was automatically updated to reflect the committed changes.