From f5cd685800f121a42747aeb87ed8f13fec00332c Mon Sep 17 00:00:00 2001 From: Jason Spafford Date: Wed, 22 May 2024 15:01:17 -0700 Subject: [PATCH] Make scanningEnabled defined --- ironfish/src/wallet/account/account.ts | 2 +- ironfish/src/wallet/walletdb/accountValue.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ironfish/src/wallet/account/account.ts b/ironfish/src/wallet/account/account.ts index 19980a7e40..a1fea32f7d 100644 --- a/ironfish/src/wallet/account/account.ts +++ b/ironfish/src/wallet/account/account.ts @@ -94,7 +94,7 @@ export class Account { this.walletDb = walletDb this.version = accountValue.version ?? 1 this.createdAt = accountValue.createdAt - this.scanningEnabled = accountValue.scanningEnabled ?? true + this.scanningEnabled = accountValue.scanningEnabled this.multisigKeys = accountValue.multisigKeys this.proofAuthorizingKey = accountValue.proofAuthorizingKey } diff --git a/ironfish/src/wallet/walletdb/accountValue.ts b/ironfish/src/wallet/walletdb/accountValue.ts index 2ef06e86f5..942c7357eb 100644 --- a/ironfish/src/wallet/walletdb/accountValue.ts +++ b/ironfish/src/wallet/walletdb/accountValue.ts @@ -23,7 +23,7 @@ export interface AccountValue { outgoingViewKey: string publicAddress: string createdAt: HeadValue | null - scanningEnabled?: boolean + scanningEnabled: boolean multisigKeys?: MultisigKeys proofAuthorizingKey: string | null }