Skip to content

Commit bc0f58d

Browse files
committed
Adjust latest version
1 parent 103affa commit bc0f58d

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

app/_locales/en/messages.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/scripts/metamask-controller.js

+2
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,8 @@ export default class MetamaskController extends EventEmitter {
19061906
updateTransactions: false,
19071907
},
19081908
isMultichainEnabled: process.env.TRANSACTION_MULTICHAIN,
1909+
isFirstTimeInteractionEnabled: () =>
1910+
this.preferencesController.state.securityAlertsEnabled,
19091911
isSimulationEnabled: () =>
19101912
this.preferencesController.state.useTransactionSimulations,
19111913
messenger: transactionControllerMessenger,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
"@ledgerhq/hw-app-eth/axios": "^0.28.0",
258258
"@ledgerhq/hw-app-eth@npm:^6.39.0": "patch:@ledgerhq/hw-app-eth@npm%3A6.39.0#~/.yarn/patches/@ledgerhq-hw-app-eth-npm-6.39.0-866309bbbe.patch",
259259
"@ledgerhq/evm-tools@npm:^1.2.3": "patch:@ledgerhq/evm-tools@npm%3A1.2.3#~/.yarn/patches/@ledgerhq-evm-tools-npm-1.2.3-414f44baa9.patch",
260-
"@metamask/transaction-controller@^38.3.0": "npm:@metamask-previews/[email protected]fefbd325"
260+
"@metamask/transaction-controller@^38.3.0": "npm:@metamask-previews/[email protected]af392506"
261261
},
262262
"dependencies": {
263263
"@babel/runtime": "patch:@babel/runtime@npm%3A7.25.9#~/.yarn/patches/@babel-runtime-npm-7.25.9-fe8c62510a.patch",

ui/pages/confirmations/hooks/alerts/transactions/useFirstTimeInteractionAlert.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export function useFirstTimeInteractionAlert(): Alert[] {
1111
const t = useI18nContext();
1212
const { currentConfirmation } = useConfirmContext();
1313

14-
const isFirstTimeInteraction = (currentConfirmation as TransactionMeta)
15-
?.firstTimeInteraction;
14+
const { isFirstTimeInteraction, isFirstTimeInteractionDisabled } =
15+
currentConfirmation as TransactionMeta;
1616

1717
return useMemo(() => {
18-
if (!isFirstTimeInteraction) {
18+
if (!isFirstTimeInteraction || isFirstTimeInteractionDisabled) {
1919
return [];
2020
}
2121

ui/pages/settings/security-tab/__snapshots__/security-tab.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ exports[`Security Tab should match snapshot 1`] = `
126126
>
127127
<span>
128128
129-
This feature alerts you to malicious activity by actively reviewing transaction and signature requests.
129+
This feature alerts you to malicious or unusual activity by actively reviewing transaction and signature requests.
130130
<a
131131
href="https://support.metamask.io/privacy-and-security/how-to-turn-on-security-alerts/"
132132
rel="noreferrer"

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6602,9 +6602,9 @@ __metadata:
66026602
languageName: node
66036603
linkType: hard
66046604

6605-
"@metamask/transaction-controller@npm:@metamask-previews/[email protected]fefbd325":
6606-
version: 39.0.0-preview-fefbd325
6607-
resolution: "@metamask-previews/transaction-controller@npm:39.0.0-preview-fefbd325"
6605+
"@metamask/transaction-controller@npm:@metamask-previews/[email protected]af392506":
6606+
version: 39.0.0-preview-af392506
6607+
resolution: "@metamask-previews/transaction-controller@npm:39.0.0-preview-af392506"
66086608
dependencies:
66096609
"@ethereumjs/common": "npm:^3.2.0"
66106610
"@ethereumjs/tx": "npm:^4.2.0"
@@ -6631,7 +6631,7 @@ __metadata:
66316631
"@metamask/approval-controller": ^7.0.0
66326632
"@metamask/gas-fee-controller": ^22.0.0
66336633
"@metamask/network-controller": ^22.0.0
6634-
checksum: 10/df741672492bc81fe796c98ba0702b1380156bc05eb4cf7fb2b5345923769a9494fad74b1a6cdebafcccdd06f262f7b9cb552b2f2ae3a1ac2b34f07321a05ceb
6634+
checksum: 10/6a2efe93c6cb2ea2247c2ab1262b1d10cb2a11366933dae9febe471d65485165498e247fe66b442f4369734aaff4d239ab6fa4cc3c236e4da9ef7cb57e3bad4a
66356635
languageName: node
66366636
linkType: hard
66376637

0 commit comments

Comments
 (0)