Page MenuHomePhabricator

[Cashtab] Use live wallet.state tokens obj if present
ClosedPublic

Authored by bytesofman on Apr 30 2021, 22:35.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC9b2399e52681: [Cashtab] Use live wallet.state tokens obj if present
Summary

Now that Cashtab is using wallet.state instead of the legacy walletState field, make sure SendToken uses this value if we are dealing with a migrated wallet

Add unit tests similar to D9451 to ensure SendToken can handle migrated wallet, unmigrated wallet, and undefined wallet

Test Plan

npm start and confirm you can successfully send an SLPA transaction

Diff Detail

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