diff --git a/builds.yml b/builds.yml index 5bbe17480496..3963aeda93e5 100644 --- a/builds.yml +++ b/builds.yml @@ -236,7 +236,7 @@ env: # Used to enable confirmation redesigned pages - ENABLE_CONFIRMATION_REDESIGN: '' # URL of the decoding API used to provide additional data from signature requests - - DECODING_API_URL: 'https://signature-insights.api.cx.metamask.io/v1' + - DECODING_API_URL: 'https://qtgdj2huxh.execute-api.us-east-2.amazonaws.com/uat/v1' # Determines if feature flagged Settings Page - Developer Options should be used - ENABLE_SETTINGS_PAGE_DEV_OPTIONS: false # Used for debugging changes to the phishing warning page. diff --git a/ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap index bdcc3e7db452..daa8641bcee2 100644 --- a/ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap +++ b/ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap @@ -24,7 +24,7 @@ exports[`Info renders info section for approve request 1`] = `

+
+
+
+
+

+ Estimated changes +

+
+
+ +
+
+
+
+
+

+ Unavailable +

+
+
@@ -1412,705 +1467,6 @@ exports[`Info renders info section for typed sign request 1`] = `

-
-
-
-
-

- Primary type: -

-
-
-
-

- Mail -

-
-
-
-
-
-
-
-

- Contents: -

-
-
-
-

- Hello, Bob! -

-
-
-
-
-
-

- From: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Cow -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xDeaDb...DbeeF -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0x06195...43896 -

-
-
-
-
-
-
-
-
-
-
-

- To: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Bob -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xbBbBB...bBBbB -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xB0Bda...bEa57 -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0xB0B0b...00000 -

-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap b/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap index 20998032a049..2c52e01bdf19 100644 --- a/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap +++ b/ui/pages/confirmations/components/confirm/info/typed-sign/__snapshots__/typed-sign.test.tsx.snap @@ -23,7 +23,7 @@ exports[`TypedSignInfo correctly renders permit sign type 1`] = `

+
+
+
+
+

+ Estimated changes +

+
+
+ +
+
+
+
+
+

+ Unavailable +

+
+
@@ -1128,712 +1183,57 @@ exports[`TypedSignInfo renders origin for typed sign data request 1`] = `

+
+
+
+`; + +exports[`TypedSignInfo should render message for typed sign v3 request 1`] = ` +
+
+
-
-
-

- Primary type: -

-
-
-
-

- Mail -

-
-
-
-
+ Estimated changes +

+
-
-
-

- Contents: -

-
-
-
-

- Hello, Bob! -

-
-
-
-
-
-

- From: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Cow -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xDeaDb...DbeeF -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0x06195...43896 -

-
-
-
-
-
-
-
-
-
-
-

- To: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Bob -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xbBbBB...bBBbB -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xB0Bda...bEa57 -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0xB0B0b...00000 -

-
-
-
-
-
-
-
-
+
+

+ Unavailable +

-
-`; - -exports[`TypedSignInfo should render message for typed sign v3 request 1`] = ` -
+
@@ -2062,339 +1473,57 @@ exports[`TypedSignInfo should render message for typed sign v3 request 1`] = `

+
+
+
+`; + +exports[`TypedSignInfo should render message for typed sign v4 request 1`] = ` +
+
+
-
-
-

- Primary type: -

-
-
-
-

- Mail -

-
-
-
-
+ Estimated changes +

+
-
-
-

- From: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Cow -

-
-
-
-
-
-

- Wallet: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-
-
-

- To: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Bob -

-
-
-
-
-
-

- Wallet: -

-
-
-
-
- -

- 0xbBbBB...bBBbB -

-
-
-
-
-
-
-
-
-

- Contents: -

-
-
-
-

- Hello, Bob! -

-
+
+

+ Unavailable +

-
-`; - -exports[`TypedSignInfo should render message for typed sign v4 request 1`] = ` -
+
@@ -2623,705 +1763,6 @@ exports[`TypedSignInfo should render message for typed sign v4 request 1`] = `

-
-
-
-
-

- Primary type: -

-
-
-
-

- Mail -

-
-
-
-
-
-
-
-

- Contents: -

-
-
-
-

- Hello, Bob! -

-
-
-
-
-
-

- From: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Cow -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xDeaDb...DbeeF -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0x06195...43896 -

-
-
-
-
-
-
-
-
-
-
-

- To: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Bob -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xbBbBB...bBBbB -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xB0Bda...bEa57 -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0xB0B0b...00000 -

-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap index e7e2e499dfe9..1ceeea6b5303 100644 --- a/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap +++ b/ui/pages/confirmations/confirm/__snapshots__/confirm.test.tsx.snap @@ -424,7 +424,7 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 - PermitB >
Review request details before you confirm.

+
+
+
+
+

+ Estimated changes +

+
+
+ +
+
+
+
+
+

+ Unavailable +

+
+
@@ -1953,705 +2008,6 @@ exports[`Confirm should match snapshot for signature - typed sign - V4 1`] = `

-
-
-
-
-

- Primary type: -

-
-
-
-

- Mail -

-
-
-
-
-
-
-
-

- Contents: -

-
-
-
-

- Hello, Bob! -

-
-
-
-
-
-

- From: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Cow -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xDeaDb...DbeeF -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0x06195...43896 -

-
-
-
-
-
-
-
-
-
-
-

- To: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
-
-
-

- Name: -

-
-
-
-

- Bob -

-
-
-
-
-
-

- Wallets: -

-
-
-
-
-
-
-

- 0: -

-
-
-
-
- -

- 0xbBbBB...bBBbB -

-
-
-
-
-
-
-

- 1: -

-
-
-
-
- -

- 0xB0Bda...bEa57 -

-
-
-
-
-
-
-

- 2: -

-
-
-
-
- -

- 0xB0B0b...00000 -

-
-
-
-
-
-
-
-
-
-
-
-
@@ -3409,6 +2765,50 @@ exports[`Confirm should match snapshot signature - typed sign - order 1`] = ` > Review request details before you confirm.

+
+
+
+
+

+ Estimated changes +

+
+
+ +
+
+
+
+
+

+ Unavailable +

+
-
-
-
-
-

- Primary type: -

-
-
-
-

- Order -

-
-
-
-
-
-
-
-

- Direction: -

-
-
-
-

- 0 -

-
-
-
-
-
-

- Maker: -

-
-
-
-
- -

- Test Account -

-
-
-
-
-
-
-

- Taker: -

-
-
-
-
- -

- 0xCD2a3...DD826 -

-
-
-
-
-
-
-

- Expiry: -

-
-
-
-

- 2524604400 -

-
-
-
-
-
-

- Nonce: -

-
-
-
-

- 100131415900000000000000000000000000000083840314483690155566137712510085002484 -

-
-
-
-
-
-

- Erc20Token: -

-
-
-
-
- -

- 0xC02aa...56Cc2 -

-
-
-
-
-
-
-

- Erc20TokenAmount: -

-
-
-
-

- 42000000000000 -

-
-
-
-
-
-

- Fees: -

-
-
-
-
-
-
-
-

- Erc721Token: -

-
-
-
-
- -

- 0x8a90C...8992e -

-
-
-
-
-
-
-

- Erc721TokenId: -

-
-
-
-

- 2516 -

-
-
-
-
-
-

- Erc721TokenProperties: -

-
-
-
-
-
-
-
diff --git a/ui/pages/confirmations/hooks/useTypesSignSimulationEnabledInfo.test.ts b/ui/pages/confirmations/hooks/useTypesSignSimulationEnabledInfo.test.ts index 5636927782d0..ce98f58782d7 100644 --- a/ui/pages/confirmations/hooks/useTypesSignSimulationEnabledInfo.test.ts +++ b/ui/pages/confirmations/hooks/useTypesSignSimulationEnabledInfo.test.ts @@ -3,7 +3,7 @@ import { renderHookWithConfirmContextProvider } from '../../../../test/lib/confi import { permitSingleSignatureMsg, seaportSignatureMsg, - unapprovedTypedSignMsgV3, + unapprovedTypedSignMsgV1, } from '../../../../test/data/confirmations/typed_sign'; import { useTypesSignSimulationEnabledInfo } from './useTypesSignSimulationEnabledInfo'; @@ -24,9 +24,9 @@ describe('useTypesSignSimulationEnabledInfo', () => { expect(result.current).toBe(false); }); - it('return false if request is not types sign V4', async () => { + it('return false if request is not types sign v3 or V4', async () => { const state = getMockTypedSignConfirmStateForRequest( - unapprovedTypedSignMsgV3, + unapprovedTypedSignMsgV1, { metamask: { useTransactionSimulations: true }, },