Skip to content

Commit

Permalink
Use preference controller state for simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
OGPoyraz committed Jun 6, 2024
1 parent baad628 commit d9c85b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ class Engine {
updateTransactions: true,
},
isSimulationEnabled: () =>
isTransactionSimulationsFeatureEnabled() && true,
isTransactionSimulationsFeatureEnabled() &&
preferencesController.state.useTransactionSimulations,
// @ts-expect-error TODO: Resolve/patch mismatch between base-controller versions. Before: never, never. Now: string, string, which expects 3rd and 4th args to be informed for restrictedControllerMessengers
messenger: this.controllerMessenger.getRestricted({
name: 'TransactionController',
Expand Down

0 comments on commit d9c85b9

Please sign in to comment.