HomePhabricator

[Cashtab] split out backend functions from tests

Description

[Cashtab] split out backend functions from tests

Summary: The getSlpBalancesAndUtxos function from useBCH.js included an API request. This diff moves the API request to a separate function, getHydratedUtxoDetails. It also removes the test for getUtxos as this is a pure API call. Tests were failing because the utxos at the mock addresses had been spent. Mocks updated to a more complicated utxo set.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D8966

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Jan 19 2021, 17:42
bytesofmanPushed on Jan 19 2021, 21:18
Reviewer
Restricted Project
Differential Revision
D8966: [Cashtab] split out backend functions from tests
Parents
rABCc42243359d81: Fix typo in Sighash tests
Branches
Unknown
Tags
Unknown