From af9a137110e82741a71f41d71d413d360db64224 Mon Sep 17 00:00:00 2001 From: Mateusz Jasiuk Date: Tue, 21 Jan 2025 12:56:09 +0100 Subject: [PATCH] feat/extension-ledger-masp-accounts (#1458) * feat: ledger shielded accounts * fix: prettier fmt --- apps/extension/src/App/Accounts/ParentAccounts.tsx | 7 ++----- packages/sdk/src/ledger.ts | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/apps/extension/src/App/Accounts/ParentAccounts.tsx b/apps/extension/src/App/Accounts/ParentAccounts.tsx index 25a1d130b..f1b1251f9 100644 --- a/apps/extension/src/App/Accounts/ParentAccounts.tsx +++ b/apps/extension/src/App/Accounts/ParentAccounts.tsx @@ -8,7 +8,7 @@ import { KeyListItem, Stack, } from "@namada/components"; -import { AccountType, DerivedAccount } from "@namada/types"; +import { DerivedAccount } from "@namada/types"; import { ParentAccountsFooter } from "App/Accounts/ParentAccountsFooter"; import { PageHeader } from "App/Common"; import routes from "App/routes"; @@ -27,14 +27,11 @@ export const ParentAccounts = (): JSX.Element => { accounts: allAccounts, changeActiveAccountId, } = useContext(AccountContext); - // We check which accounts need to be re-imported const accounts = allAccounts .filter((account) => account.parentId) .map((account) => { - const outdated = - account.type !== AccountType.Ledger && - typeof account.pseudoExtendedKey === "undefined"; + const outdated = typeof account.pseudoExtendedKey === "undefined"; const parent = parentAccounts.find((pa) => pa.id === account.parentId); invariant(parent, `Parent account not found for account ${account.id}`); diff --git a/packages/sdk/src/ledger.ts b/packages/sdk/src/ledger.ts index f39281bb4..cf3c9b484 100644 --- a/packages/sdk/src/ledger.ts +++ b/packages/sdk/src/ledger.ts @@ -255,7 +255,7 @@ export class Ledger { * Check if Zip32 is supported by the installed app's version. * Throws error if app is not initialized * @async - * @retuns boolean + * @returns boolean */ public async isZip32Supported(): Promise { const {