As per feedback from D14186, updating isValidStoredWallet validation logic to also check for name, mnemonic, Path245, Path145 and Path1899 keys in the wallet object.
Details
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABC890a4217c28f: [Cashtab] Improve isValidStoredWallet validation
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
cashtab/src/utils/cashMethods.js | ||
---|---|---|
1075 ↗ | (On Diff #41172) | Add a unit test that shows isValidStoredWallet is false for a wallet missing one of these newly added checked fields, i.e. name or mnemonic or both |
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Failed tests logs:
====== CashTab Unit Tests: Verify processChronikWsMsg() processes AddedToMempool events ====== assert.notEqual(received, expected) Expected value to not be equal to: null Received: null Difference: Compared values have no visual difference. at Object.<anonymous> (/work/cashtab/src/hooks/__tests__/useWallet.test.js:42:12) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Each failure log is accessible here:
CashTab Unit Tests: Verify processChronikWsMsg() processes AddedToMempool events
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
Failed tests logs:
====== CashTab Unit Tests: Verify processChronikWsMsg() processes AddedToMempool events ====== assert.notEqual(received, expected) Expected value to not be equal to: null Received: null Difference: Compared values have no visual difference. at Object.<anonymous> (/work/cashtab/src/hooks/__tests__/useWallet.test.js:42:12) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Each failure log is accessible here:
CashTab Unit Tests: Verify processChronikWsMsg() processes AddedToMempool events