From 55606980a9204d6f21fbb8c290b9b1c6ba2e7dcf Mon Sep 17 00:00:00 2001 From: Luiz Gomes <8636507+LuizAsFight@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:40:20 -0300 Subject: [PATCH] chore: change sentry reported data (#1704) --- .changeset/neat-tables-stare.md | 5 +++++ .changeset/two-ligers-behave.md | 5 +++++ packages/app/src/systems/Account/services/account.ts | 10 ++++------ packages/playwright-utils/src/fixtures/fixtures.ts | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 .changeset/neat-tables-stare.md create mode 100644 .changeset/two-ligers-behave.md diff --git a/.changeset/neat-tables-stare.md b/.changeset/neat-tables-stare.md new file mode 100644 index 000000000..a676795a9 --- /dev/null +++ b/.changeset/neat-tables-stare.md @@ -0,0 +1,5 @@ +--- +"fuels-wallet": patch +--- + +chore: reduce reported data to sentry diff --git a/.changeset/two-ligers-behave.md b/.changeset/two-ligers-behave.md new file mode 100644 index 000000000..576e4767e --- /dev/null +++ b/.changeset/two-ligers-behave.md @@ -0,0 +1,5 @@ +--- +"@fuels/playwright-utils": patch +--- + +chore: update wallet version 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);