Skip to content

Commit 5a8f65f

Browse files
Merge branch 'main' into fix/font-size-increase
2 parents 3634465 + 405e1ea commit 5a8f65f

File tree

249 files changed

+13374
-4187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+13374
-4187
lines changed

.github/workflows/get-release-timelines.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ on:
66
version:
77
required: true
88
type: string
9-
description: 'The version of the release'
9+
description: The version of the release
1010

1111
jobs:
1212
get-release-timelines:
13-
uses: metamask/github-tools/.github/workflows/get-release-timelines.yml@3e0b0204e41b576263b9060945de3b3b9b8c5448
13+
uses: metamask/github-tools/.github/workflows/get-release-timelines.yml@13b73c8c7dd15f38bacc1bb95401fe11914c6629
1414
with:
15-
version: ${{ github.event.inputs.version }}
15+
version: ${{ inputs.version }}
1616
secrets:
17-
RUNWAY_APP_ID: ''
18-
RUNWAY_API_KEY: ''
17+
RUNWAY_APP_ID: ${{ secrets.RUNWAY_APP_ID }}
18+
RUNWAY_API_KEY: ${{ secrets.RUNWAY_API_KEY }}

.madgerc

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
},
2525
"allowedCircularGlob": [
2626
"ui/pages/confirmations/**",
27-
"ui/pages/notifications/**",
2827
"ui/ducks/**",
2928
"ui/selectors/**",
3029
"ui/hooks/**",

.storybook/test-data.js

-6
Original file line numberDiff line numberDiff line change
@@ -718,12 +718,6 @@ const state = {
718718
},
719719
tokenNetworkFilter: {},
720720
},
721-
incomingTransactionsPreferences: {
722-
[CHAIN_IDS.MAINNET]: true,
723-
[CHAIN_IDS.GOERLI]: false,
724-
[CHAIN_IDS.OPTIMISM_TESTNET]: false,
725-
[CHAIN_IDS.AVALANCHE_TESTNET]: true,
726-
},
727721
firstTimeFlowType: FirstTimeFlowType.create,
728722
completedOnboarding: true,
729723
knownMethodData: {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
diff --git a/dist/utils/validation.cjs b/dist/utils/validation.cjs
2+
index eb116f75643a6607af10eb1669aaabfb48159826..349937fca246b26deac4a428fb3ad93dc7e18a6e 100644
3+
--- a/dist/utils/validation.cjs
4+
+++ b/dist/utils/validation.cjs
5+
@@ -150,7 +150,9 @@ function validateAddress(address, propertyName) {
6+
function validateVerifyingContract({ data, internalAccounts, origin, }) {
7+
const verifyingContract = data?.domain?.verifyingContract;
8+
const isExternal = origin && origin !== approval_controller_1.ORIGIN_METAMASK;
9+
- if (isExternal &&
10+
+ if (verifyingContract &&
11+
+ typeof verifyingContract === 'string' &&
12+
+ isExternal &&
13+
internalAccounts.some((internalAccount) => internalAccount.toLowerCase() === verifyingContract.toLowerCase())) {
14+
throw new Error(`External signature requests cannot use internal accounts as the verifying contract.`);
15+
}
16+
diff --git a/dist/utils/validation.mjs b/dist/utils/validation.mjs
17+
index 58b55c134527537c0ef1f44876afcf2939e9ed53..d4af6e8a1e8fff08e422ebfa6b9f444dc24c8632 100644
18+
--- a/dist/utils/validation.mjs
19+
+++ b/dist/utils/validation.mjs
20+
@@ -145,7 +145,9 @@ function validateAddress(address, propertyName) {
21+
function validateVerifyingContract({ data, internalAccounts, origin, }) {
22+
const verifyingContract = data?.domain?.verifyingContract;
23+
const isExternal = origin && origin !== ORIGIN_METAMASK;
24+
- if (isExternal &&
25+
+ if (verifyingContract &&
26+
+ typeof verifyingContract === 'string' &&
27+
+ isExternal &&
28+
internalAccounts.some((internalAccount) => internalAccount.toLowerCase() === verifyingContract.toLowerCase())) {
29+
throw new Error(`External signature requests cannot use internal accounts as the verifying contract.`);
30+
}

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [12.15.1]
10+
### Fixed
11+
- Re-fix state corruption resulting in inability to create/add accounts – previously fixed in 12.14.2 ([31274])(https://github.com/MetaMask/metamask-extension/pull/31274))
12+
913
## [12.15.0]
1014
### Added
1115
- When switching network, alert the user and get approval if there are pending requests from origin. ([#30674](https://github.com/MetaMask/metamask-extension/pull/30674))
@@ -5880,7 +5884,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
58805884
- Added the ability to restore accounts from seed words.
58815885

58825886

5883-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.15.0...HEAD
5887+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.15.1...HEAD
5888+
[12.15.1]: https://github.com/MetaMask/metamask-extension/compare/v12.15.0...v12.15.1
58845889
[12.15.0]: https://github.com/MetaMask/metamask-extension/compare/v12.14.2...v12.15.0
58855890
[12.14.2]: https://github.com/MetaMask/metamask-extension/compare/v12.14.1...v12.14.2
58865891
[12.14.1]: https://github.com/MetaMask/metamask-extension/compare/v12.14.0...v12.14.1

0 commit comments

Comments
 (0)