Page MenuHomePhabricator

[Cashtab] Convert wallet management screen to typescript
ClosedPublic

Authored by bytesofman on Sat, Jan 18, 00:25.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC2615794e3596: [Cashtab] Convert wallet management screen to typescript
Summary

Convert to typescript as prep for improving how wallets are activated similar to dropdown wallet select improvements

In implementing typescript, patch type-related bug

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cashtab/src/components/Wallets/index.tsx
277 ↗(On Diff #52292)

typescript can find this kind of bug immediately

we were comparing wallet.name against wallet, instead of wallet.name against newImportedWallet.name

it's a crazy edge case to import a wallet that happens to have the same first 5 characters of an address as the other wallet, hence untested ... but still nice to catch

This revision is now accepted and ready to land.Sat, Jan 18, 04:22