MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.52k stars 4.7k forks source link

fix: Move "SettingsUpdated" event into the "setSmartTransactionsOptInStatus" function #24394

Closed dan437 closed 1 week ago

dan437 commented 1 week ago

Description

Move the "SettingsUpdated" event with the "stx_opt_in" prop into the "setSmartTransactionsOptInStatus" function.

Related issues

Fixes:

Manual testing steps

  1. Install the extension
  2. Opt in or opt out from Smart Transactions in the modal window or from Advanced Settings
  3. See the "Settings Updated" event triggered

Screenshots/Recordings

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 1 week ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

metamaskbot commented 1 week ago
Builds ready [4cccd1e]
Page Load Metrics (1176 ± 655 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint66158912411
domContentLoaded108116157
load54332611761364655
domInteractive108116157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -153 Bytes (-0.00%)
  • common: 275 Bytes (0.00%)