Skip to content

Commit

Permalink
chore: remove account-data from log
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Dec 12, 2024
1 parent be181de commit 2fdaa1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
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 2fdaa1c

Please sign in to comment.