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.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC4fbab12477a9: [Cashtab] split out backend functions from tests
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable