Skip to content

Commit

Permalink
Add types for removed and accidental fields present in persisted states
Browse files Browse the repository at this point in the history
We "removed" some fields throughout time, but didn't add state migration steps.
This should be completely fine, types just didn't match test fixtures.
  • Loading branch information
lukaw3d committed Nov 17, 2023
1 parent 184252f commit abe0123
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/state/wallet/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ export interface Wallet {
path?: number[]
pathDisplay?: string
privateKey?: string
balance: BalanceDetails
balance: BalanceDetails & {
/** @deprecated This property is not reliably present */
address?: string
/** @deprecated This property is not reliably present */
allowances?: any[]
/** @deprecated This property is not reliably present */
validator?: any
}
name?: string
}

Expand All @@ -37,6 +44,8 @@ export interface OpenSelectedAccountsPayload {

/* --- STATE --- */
export interface WalletState {
/** @deprecated This property was removed after 76fbf9a */
isOpen?: boolean
selectedWallet?: string
wallets: { [address: string]: Wallet }
}

0 comments on commit abe0123

Please sign in to comment.