Skip to content

Commit af4ad7c

Browse files
committed
Clean up
1 parent f009400 commit af4ad7c

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

packages/mobile-app/data/facades/wallet/oreowalletHandlers.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export const walletHandlers = f.facade<WalletHandlers>({
3131
);
3232
const account = await oreoWallet.createAccount(network, name);
3333

34-
console.log("accountzzz", account);
35-
3634
return {
3735
name: account.name,
3836
viewOnly: account.viewOnly,
@@ -91,8 +89,6 @@ export const walletHandlers = f.facade<WalletHandlers>({
9189
? await oreoWallet.getActiveAccountWithHeadAndBalances(network)
9290
: await oreoWallet.getAccountWithHeadAndBalances(network, name);
9391

94-
console.log({ name });
95-
9692
if (!account) {
9793
return null;
9894
}

packages/mobile-app/data/wallet/db.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,6 @@ export class WalletDb {
482482
AccountFormat.Base64Json,
483483
);
484484

485-
console.log("account", account);
486-
487485
const result = await this.db.transaction().execute(async (db) => {
488486
const insertResult = await db
489487
.insertInto("accounts")
@@ -502,16 +500,13 @@ export class WalletDb {
502500
// * If the new account has same public address but different name
503501
// * If the new account has same public address but adds/removes spending key
504502
if (!insertResult.numInsertedOrUpdatedRows) {
505-
console.log("returning existing account");
506503
return await db
507504
.selectFrom("accounts")
508505
.selectAll()
509506
.where("accounts.publicAddress", "=", account.publicAddress)
510507
.executeTakeFirstOrThrow();
511508
}
512509

513-
console.log("returning new account");
514-
515510
// Only set as active account if this was a new insert
516511
await db
517512
.updateTable("activeAccount")
@@ -754,8 +749,6 @@ export class WalletDb {
754749
])
755750
.executeTakeFirst();
756751

757-
console.log("active", account);
758-
759752
if (!account) return;
760753

761754
const head = await db

packages/mobile-app/providers/AccountProvider.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ export function AccountProvider({ children }: { children: ReactNode }) {
2525
},
2626
);
2727

28-
console.log(getAccountResult.data);
29-
3028
useEffect(() => {
3129
if (getAccountResult.isLoading) return;
3230

0 commit comments

Comments
 (0)