From ce731d7d128650b3fb74cc529613e5595cd98d73 Mon Sep 17 00:00:00 2001 From: Derek Guenther Date: Tue, 20 Aug 2024 12:11:59 -0400 Subject: [PATCH] Simplify --- packages/mobile-app/data/wallet/writeQueue.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/mobile-app/data/wallet/writeQueue.ts b/packages/mobile-app/data/wallet/writeQueue.ts index be9d3b3..66ca6e1 100644 --- a/packages/mobile-app/data/wallet/writeQueue.ts +++ b/packages/mobile-app/data/wallet/writeQueue.ts @@ -38,15 +38,17 @@ type DBWrite = export class WriteQueue { readonly heads: Map = new Map(); + readonly db: WalletDb; + readonly network: Network; private writeQueue: DBWrite[] = []; readonly nullifierSet = new Set(); - constructor( - readonly db: WalletDb, - readonly network: Network, - ) {} + constructor(db: WalletDb, network: Network) { + this.db = db; + this.network = network; + } getHead(id: number): { hash: Uint8Array; sequence: number } | undefined { return this.heads.get(id);