Page MenuHomePhabricator

[Cashtab] Get change address from sending utxo
ClosedPublic

Authored by bytesofman on Jul 3 2021, 04:30.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCfa5aa4e628c7: [Cashtab] Get change address from sending utxo
Summary

Change addresses were taken from wallet local storage. However, a more robust solution is to always get the change address from the spending utxo. Now that we are well past migrating to the 1899 deriv path, the wallet can go back to this method.

Test Plan

npm test

npm start
send an xec transaction and confirm change address matches spending address
send an etoken transaction and confirm change address matches spending address

Diff Detail

Repository
rABC Bitcoin ABC
Branch
get-change-addr-from-spending-utxo
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16102
Build 32078: Build Diffcashtab-tests
Build 32077: arc lint + arc unit