From defa2e5b686a43c9946bfdd4025cdb18620d508e Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Thu, 14 Nov 2024 00:40:53 +0000 Subject: [PATCH] Remove debug logs --- app/scripts/metamask-controller.js | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 8f38e412a800..a35be7709869 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -1892,25 +1892,10 @@ export default class MetamaskController extends EventEmitter { [CHAIN_IDS.SEPOLIA]: process.env.ETHERSCAN_API_KEY, }, includeTokenTransfers: false, - isEnabled: () => { - const globalChainId = this.#getGlobalChainId(); - - const isChainEnabled = - this.preferencesController.state.incomingTransactionsPreferences?.[ - globalChainId - ]; - - const isOnboardingComplete = - this.onboardingController.state.completedOnboarding; - - console.log('#MATT', { - globalChainId, - isChainEnabled, - isOnboardingComplete, - }); - - return isChainEnabled && isOnboardingComplete; - }, + isEnabled: () => + this.preferencesController.state.incomingTransactionsPreferences?.[ + this.#getGlobalChainId() + ] && this.onboardingController.state.completedOnboarding, queryEntireHistory: false, updateTransactions: false, },