Skip to content

Commit

Permalink
chore: remove data from comment (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Jan 2, 2025
1 parent 5a6ebbd commit 2297520
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-gorillas-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels-wallet": patch
---

chore: remove comment
2 changes: 1 addition & 1 deletion packages/app/src/systems/Core/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class FuelDB extends Dexie {
if (accounts.length && vaults.length && networks.length) {
console.log('saving data to chrome storage', {
accounts,
vaults,
vaults: vaults.length,
networks,
});
for (const account of accounts) {
Expand Down
5 changes: 4 additions & 1 deletion packages/app/src/systems/Core/utils/opfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export async function saveToOPFS(data: any) {

const root = await initOPFS();
if (!root) return;
console.log('saving data to opfs', data);
console.log('saving data to opfs', {
...data,
vaults: data.vaults.length,
});
const fileHandle = await root.getFileHandle('backup.json', { create: true });
const writable = await fileHandle.createWritable();
await writable.write(JSON.stringify(data));
Expand Down

0 comments on commit 2297520

Please sign in to comment.