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);