Skip to content

Commit

Permalink
Remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwalsh0 committed Nov 14, 2024
1 parent cafd321 commit defa2e5
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit defa2e5

Please sign in to comment.