Skip to content

Commit

Permalink
chore: change sentry reported data (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Dec 12, 2024
1 parent be181de commit 5560698
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-tables-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

chore: reduce reported data to sentry
5 changes: 5 additions & 0 deletions .changeset/two-ligers-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuels/playwright-utils": patch
---

chore: update wallet version
10 changes: 4 additions & 6 deletions packages/app/src/systems/Account/services/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,12 @@ export class AccountService {
} = await AccountService.fetchRecoveryState();

if (needsRecovery) {
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
const dataToLog: any = {
backupAccounts: JSON.stringify(backupAccounts),
backupNetworks: JSON.stringify(backupNetworks),
};

(async () => {
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
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;
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-utils/src/fixtures/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5560698

Please sign in to comment.