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
- Branch
- cashtab-test-mock
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 14850 Build 29654: Build Diff cashtab-tests Build 29653: arc lint + arc unit