From 2fdaa1c9f33d9d0372044d3b046b5de3da105305 Mon Sep 17 00:00:00 2001 From: LuizAsFight Date: Thu, 12 Dec 2024 02:20:11 -0300 Subject: [PATCH] chore: remove account-data from log --- packages/app/src/systems/Account/services/account.ts | 10 ++++------ packages/playwright-utils/src/fixtures/fixtures.ts | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/app/src/systems/Account/services/account.ts b/packages/app/src/systems/Account/services/account.ts index 0130623f6..0cba8114f 100644 --- a/packages/app/src/systems/Account/services/account.ts +++ b/packages/app/src/systems/Account/services/account.ts @@ -257,14 +257,12 @@ export class AccountService { } = await AccountService.fetchRecoveryState(); if (needsRecovery) { - // biome-ignore lint/suspicious/noExplicitAny: - const dataToLog: any = { - backupAccounts: JSON.stringify(backupAccounts), - backupNetworks: JSON.stringify(backupNetworks), - }; - (async () => { + // biome-ignore lint/suspicious/noExplicitAny: + const dataToLog: any = {}; try { + dataToLog.backupAccounts = JSON.stringify(backupAccounts?.map((account) => account?.data?.address) || []); + dataToLog.backupNetworks = JSON.stringify(backupNetworks || []); // try getting data from indexedDB (outside of dexie) to check if it's also corrupted const testNoDexieDbData = await getTestNoDexieDbData(); dataToLog.testNoDexieDbData = testNoDexieDbData; diff --git a/packages/playwright-utils/src/fixtures/fixtures.ts b/packages/playwright-utils/src/fixtures/fixtures.ts index 3ba35340e..34f69b1de 100644 --- a/packages/playwright-utils/src/fixtures/fixtures.ts +++ b/packages/playwright-utils/src/fixtures/fixtures.ts @@ -9,7 +9,7 @@ export const test = base.extend<{ pathToExtension: string; fuelWalletVersion: string; }>({ - fuelWalletVersion: '0.21.0', + fuelWalletVersion: '0.42.3', pathToExtension: async ({ fuelWalletVersion }, use) => { const fuelPath = await downloadFuel(fuelWalletVersion); await use(fuelPath);