renders component for approve request 1`] = `
-
-
-
-
-
-
- Estimated changes
-
-
-
-
-
-
- You're giving someone else permission to spend this amount from your account.
-
-
-
-
-
-
-
-
-
-
-
-
- 0x07614...3ad68
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0x2e0D7...5d09B
-
-
-
-
-
-
-
-
-
- metamask.github.io
-
-
-
-
-
-
-
-
-
- 0x2e0D7...5d09B
-
-
-
-
-
-
-
-
- Interacting with
-
-
-
-
-
-
-
-
- 0x07614...3ad68
-
-
-
-
-
-
-
-
-
-
-
- 0.0001 ETH
-
-
- $0.08
-
-
-
-
-
-
-
-
-
- 🦊 Market
-
-
-
- ~
- 0 sec
-
-
-
-
-
-
-
-
-
- 0.0023 ETH
-
-
- $1.26
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0x2e0D7...5d09B
-
-
-
-
-
-
-
-
-`;
diff --git a/ui/pages/confirmations/components/confirm/info/base-transaction-info/__snapshots__/base-transaction-info.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/base-transaction-info/__snapshots__/base-transaction-info.test.tsx.snap
index 380be75aa32d..10506183561d 100644
--- a/ui/pages/confirmations/components/confirm/info/base-transaction-info/__snapshots__/base-transaction-info.test.tsx.snap
+++ b/ui/pages/confirmations/components/confirm/info/base-transaction-info/__snapshots__/base-transaction-info.test.tsx.snap
@@ -234,7 +234,7 @@ exports[`
renders component for contract interaction requ
renders component for approve request 1`] = `
renders component for transaction details 1`] =
-
-
-
-
-
-
- Interacting with
-
-
-
-
-
-
-
-
- 0x07614...3ad68
-
-
-
-
-
-
-`;
diff --git a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap
deleted file mode 100644
index 9b123875728a..000000000000
--- a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap
+++ /dev/null
@@ -1,376 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`TokenTransferInfo renders correctly 1`] = `
-
-
-
-
-
-
-
-
-
- Estimated changes
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Interacting with
-
-
-
-
-
-
-
-
- 0x07614...3ad68
-
-
-
-
-
-
-
-
-
-
- 0.0001 ETH
-
-
- $0.08
-
-
-
-
-
-
-
-
-
- 🦊 Market
-
-
-
- ~
- 0 sec
-
-
-
-
-
-
-
-`;
diff --git a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/transaction-flow-section.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/transaction-flow-section.test.tsx.snap
index fdb7ae940e68..01614eec26cd 100644
--- a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/transaction-flow-section.test.tsx.snap
+++ b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/transaction-flow-section.test.tsx.snap
@@ -10,7 +10,7 @@ exports[`
renders correctly 1`] = `
class="mm-box mm-box--display-flex mm-box--flex-direction-row mm-box--justify-content-space-between mm-box--align-items-center"
>
renders correctly 1`] = `
style="mask-image: url('./images/icons/arrow-right.svg');"
/>
Date: Fri, 22 Nov 2024 19:21:19 +0530
Subject: [PATCH 12/12] update
---
.../__snapshots__/approve.test.tsx.snap | 924 ++++++++++++++++++
.../token-details-section.test.tsx.snap | 133 +++
.../token-transfer.test.tsx.snap | 376 +++++++
.../hooks/alerts/useSelectedAccountAlerts.ts | 3 +-
4 files changed, 1435 insertions(+), 1 deletion(-)
create mode 100644 ui/pages/confirmations/components/confirm/info/approve/__snapshots__/approve.test.tsx.snap
create mode 100644 ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-details-section.test.tsx.snap
create mode 100644 ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap
diff --git a/ui/pages/confirmations/components/confirm/info/approve/__snapshots__/approve.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/approve/__snapshots__/approve.test.tsx.snap
new file mode 100644
index 000000000000..19050e5f3f37
--- /dev/null
+++ b/ui/pages/confirmations/components/confirm/info/approve/__snapshots__/approve.test.tsx.snap
@@ -0,0 +1,924 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`
renders component for approve request 1`] = `
+
+
+
+
+
+
+ Estimated changes
+
+
+
+
+
+
+ You're giving someone else permission to spend this amount from your account.
+
+
+
+
+
+
+
+
+
+
+
+
+ 0x07614...3ad68
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0x2e0D7...5d09B
+
+
+
+
+
+
+
+
+
+ metamask.github.io
+
+
+
+
+
+
+
+
+
+ 0x2e0D7...5d09B
+
+
+
+
+
+
+
+
+ Interacting with
+
+
+
+
+
+
+
+
+ 0x07614...3ad68
+
+
+
+
+
+
+
+
+
+
+
+ 0.0001 ETH
+
+
+ $0.08
+
+
+
+
+
+
+
+
+
+ 🦊 Market
+
+
+
+ ~
+ 0 sec
+
+
+
+
+
+
+
+
+
+ 0.0023 ETH
+
+
+ $1.26
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0x2e0D7...5d09B
+
+
+
+
+
+
+
+
+`;
diff --git a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-details-section.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-details-section.test.tsx.snap
new file mode 100644
index 000000000000..6ab7ebb270b7
--- /dev/null
+++ b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-details-section.test.tsx.snap
@@ -0,0 +1,133 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`TokenDetailsSection renders correctly 1`] = `
+
+
+
+
+
+
+
+ Interacting with
+
+
+
+
+
+
+
+
+ 0x07614...3ad68
+
+
+
+
+
+
+`;
diff --git a/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap
new file mode 100644
index 000000000000..9b123875728a
--- /dev/null
+++ b/ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap
@@ -0,0 +1,376 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`TokenTransferInfo renders correctly 1`] = `
+
+
+
+
+
+
+
+
+
+ Estimated changes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Interacting with
+
+
+
+
+
+
+
+
+ 0x07614...3ad68
+
+
+
+
+
+
+
+
+
+
+ 0.0001 ETH
+
+
+ $0.08
+
+
+
+
+
+
+
+
+
+ 🦊 Market
+
+
+
+ ~
+ 0 sec
+
+
+
+
+
+
+
+`;
diff --git a/ui/pages/confirmations/hooks/alerts/useSelectedAccountAlerts.ts b/ui/pages/confirmations/hooks/alerts/useSelectedAccountAlerts.ts
index b28653545f33..6e4be13b1ae5 100644
--- a/ui/pages/confirmations/hooks/alerts/useSelectedAccountAlerts.ts
+++ b/ui/pages/confirmations/hooks/alerts/useSelectedAccountAlerts.ts
@@ -20,7 +20,8 @@ export const useSelectedAccountAlerts = (): Alert[] => {
(currentConfirmation as SignatureRequestType)?.msgParams?.from ??
(currentConfirmation as TransactionMeta)?.txParams?.from;
const confirmationAccountSameAsSelectedAccount =
- !fromAccount || fromAccount.toLowerCase() === selectedAccount?.address?.toLowerCase();
+ !fromAccount ||
+ fromAccount.toLowerCase() === selectedAccount?.address?.toLowerCase();
return useMemo
((): Alert[] => {
if (confirmationAccountSameAsSelectedAccount) {