Skip to content

Commit 83bfd33

Browse files
authored
Merge pull request #28091 from MetaMask/Version-v12.5.1
Version v12.5.1 RC
2 parents 22bf4ad + 82a548c commit 83bfd33

File tree

27 files changed

+642
-238
lines changed

27 files changed

+642
-238
lines changed

.metamaskrc.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ BLOCKAID_PUBLIC_KEY=
4545
; Enable/disable why did you render debug tool: https://github.com/welldone-software/why-did-you-render
4646
; This should NEVER be enabled in production since it slows down react
4747
; ENABLE_WHY_DID_YOU_RENDER=false
48+
49+
; API key used in Etherscan requests to prevent rate limiting.
50+
; Only applies to Mainnet and Sepolia.
51+
; ETHERSCAN_API_KEY=

.yarnrc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ npmAuditIgnoreAdvisories:
123123
# Currently in use for the network list drag and drop functionality.
124124
# Maintenance has stopped and the project will be archived in 2025.
125125
- 'react-beautiful-dnd (deprecation)'
126-
126+
# New package name format for new versions: @ethereumjs/wallet.
127+
- 'ethereumjs-wallet (deprecation)'
127128
npmRegistries:
128129
'https://npm.pkg.github.com':
129130
npmAlwaysAuth: true

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [12.5.1]
10+
### Changed
11+
- Improve accuracy of transaction simulation warnings in some scenarios ([#26845](https://github.com/MetaMask/metamask-extension/pull/26845))
12+
13+
### Fixed
14+
- Fix bug that could cause token balances to appear as zero, and a balance error to be displayed, on the send screen ([#28136](https://github.com/MetaMask/metamask-extension/pull/28136))
15+
916
## [12.5.0]
1017
### Added
1118
- New UI and functionality for adding and managing networks ([#26433](https://github.com/MetaMask/metamask-extension/pull/26433)), ([#27085](https://github.com/MetaMask/metamask-extension/pull/27085))
@@ -5223,7 +5230,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
52235230
- Added the ability to restore accounts from seed words.
52245231

52255232

5226-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.5.0...HEAD
5233+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v12.5.1...HEAD
5234+
[12.5.1]: https://github.com/MetaMask/metamask-extension/compare/v12.5.0...v12.5.1
52275235
[12.5.0]: https://github.com/MetaMask/metamask-extension/compare/v12.4.2...v12.5.0
52285236
[12.4.2]: https://github.com/MetaMask/metamask-extension/compare/v12.4.1...v12.4.2
52295237
[12.4.1]: https://github.com/MetaMask/metamask-extension/compare/v12.4.0...v12.4.1

app/_locales/en/messages.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/scripts/lib/transaction/smart-transactions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ class SmartTransactionHook {
313313
signedTransactions,
314314
signedCanceledTransactions: [],
315315
txParams: this.#txParams,
316-
transactionMeta: this.#transactionMeta,
316+
// TODO: Replace `any` with type - version mismatch between smart-transactions-controller and transaction-controller breaking type safety
317+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
318+
transactionMeta: this.#transactionMeta as any,
317319
});
318320
}
319321

app/scripts/metamask-controller.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,10 @@ export default class MetamaskController extends EventEmitter {
18491849
getCurrentChainId({ metamask: this.networkController.state })
18501850
],
18511851
incomingTransactions: {
1852+
etherscanApiKeysByChainId: {
1853+
[CHAIN_IDS.MAINNET]: process.env.ETHERSCAN_API_KEY,
1854+
[CHAIN_IDS.SEPOLIA]: process.env.ETHERSCAN_API_KEY,
1855+
},
18521856
includeTokenTransfers: false,
18531857
isEnabled: () =>
18541858
Boolean(

builds.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,10 @@ env:
272272
- SECURITY_ALERTS_API_ENABLED: ''
273273
# URL of security alerts API used to validate dApp requests
274274
- SECURITY_ALERTS_API_URL: 'http://localhost:3000'
275+
# API key to authenticate Etherscan requests to avoid rate limiting
276+
- ETHERSCAN_API_KEY: ''
275277

276-
# Enables the notifications feature within the build:
278+
# Enables the notifications feature within the build:
277279
- NOTIFICATIONS: ''
278280

279281
- METAMASK_RAMP_API_CONTENT_BASE_URL: https://on-ramp-content.api.cx.metamask.io
@@ -290,6 +292,7 @@ env:
290292
###
291293

292294
- EIP_4337_ENTRYPOINT: null
295+
293296
###
294297
# Enable/disable why did you render debug tool: https://github.com/welldone-software/why-did-you-render
295298
# This should NEVER be enabled in production since it slows down react

lavamoat/browserify/beta/policy.json

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -783,15 +783,30 @@
783783
},
784784
"packages": {
785785
"@ethereumjs/tx>@ethereumjs/util": true,
786+
"@metamask/controller-utils>@metamask/utils": true,
786787
"@metamask/controller-utils>@spruceid/siwe-parser": true,
787788
"@metamask/ethjs>@metamask/ethjs-unit": true,
788-
"@metamask/utils": true,
789789
"bn.js": true,
790790
"browserify>buffer": true,
791791
"eslint>fast-deep-equal": true,
792792
"eth-ens-namehash": true
793793
}
794794
},
795+
"@metamask/controller-utils>@metamask/utils": {
796+
"globals": {
797+
"TextDecoder": true,
798+
"TextEncoder": true
799+
},
800+
"packages": {
801+
"@metamask/utils>@metamask/superstruct": true,
802+
"@metamask/utils>@scure/base": true,
803+
"@metamask/utils>pony-cause": true,
804+
"@noble/hashes": true,
805+
"browserify>buffer": true,
806+
"nock>debug": true,
807+
"semver": true
808+
}
809+
},
795810
"@metamask/controller-utils>@spruceid/siwe-parser": {
796811
"globals": {
797812
"console.error": true,
@@ -2726,9 +2741,9 @@
27262741
"@metamask/metamask-eth-abis": true,
27272742
"@metamask/name-controller>async-mutex": true,
27282743
"@metamask/network-controller": true,
2729-
"@metamask/rpc-errors": true,
27302744
"@metamask/transaction-controller>@metamask/nonce-tracker": true,
2731-
"@metamask/utils": true,
2745+
"@metamask/transaction-controller>@metamask/rpc-errors": true,
2746+
"@metamask/transaction-controller>@metamask/utils": true,
27322747
"bn.js": true,
27332748
"browserify>buffer": true,
27342749
"eth-method-registry": true,
@@ -2754,6 +2769,27 @@
27542769
"@swc/helpers>tslib": true
27552770
}
27562771
},
2772+
"@metamask/transaction-controller>@metamask/rpc-errors": {
2773+
"packages": {
2774+
"@metamask/transaction-controller>@metamask/utils": true,
2775+
"eth-rpc-errors>fast-safe-stringify": true
2776+
}
2777+
},
2778+
"@metamask/transaction-controller>@metamask/utils": {
2779+
"globals": {
2780+
"TextDecoder": true,
2781+
"TextEncoder": true
2782+
},
2783+
"packages": {
2784+
"@metamask/utils>@metamask/superstruct": true,
2785+
"@metamask/utils>@scure/base": true,
2786+
"@metamask/utils>pony-cause": true,
2787+
"@noble/hashes": true,
2788+
"browserify>buffer": true,
2789+
"nock>debug": true,
2790+
"semver": true
2791+
}
2792+
},
27572793
"@metamask/user-operation-controller": {
27582794
"globals": {
27592795
"fetch": true
@@ -3879,10 +3915,10 @@
38793915
"eth-lattice-keyring>gridplus-sdk>elliptic": true,
38803916
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": true,
38813917
"eth-lattice-keyring>gridplus-sdk>rlp": true,
3882-
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
38833918
"eth-lattice-keyring>gridplus-sdk>uuid": true,
38843919
"ethereumjs-util>ethereum-cryptography>bs58check": true,
38853920
"ethers>@ethersproject/sha2>hash.js": true,
3921+
"ganache>secp256k1": true,
38863922
"lodash": true
38873923
}
38883924
},
@@ -3995,22 +4031,6 @@
39954031
"TextEncoder": true
39964032
}
39974033
},
3998-
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
3999-
"packages": {
4000-
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": true
4001-
}
4002-
},
4003-
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": {
4004-
"packages": {
4005-
"@metamask/ppom-validator>elliptic>brorand": true,
4006-
"@metamask/ppom-validator>elliptic>hmac-drbg": true,
4007-
"@metamask/ppom-validator>elliptic>minimalistic-assert": true,
4008-
"@metamask/ppom-validator>elliptic>minimalistic-crypto-utils": true,
4009-
"bn.js": true,
4010-
"ethers>@ethersproject/sha2>hash.js": true,
4011-
"pumpify>inherits": true
4012-
}
4013-
},
40144034
"eth-lattice-keyring>gridplus-sdk>uuid": {
40154035
"globals": {
40164036
"crypto": true

lavamoat/browserify/flask/policy.json

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -783,15 +783,30 @@
783783
},
784784
"packages": {
785785
"@ethereumjs/tx>@ethereumjs/util": true,
786+
"@metamask/controller-utils>@metamask/utils": true,
786787
"@metamask/controller-utils>@spruceid/siwe-parser": true,
787788
"@metamask/ethjs>@metamask/ethjs-unit": true,
788-
"@metamask/utils": true,
789789
"bn.js": true,
790790
"browserify>buffer": true,
791791
"eslint>fast-deep-equal": true,
792792
"eth-ens-namehash": true
793793
}
794794
},
795+
"@metamask/controller-utils>@metamask/utils": {
796+
"globals": {
797+
"TextDecoder": true,
798+
"TextEncoder": true
799+
},
800+
"packages": {
801+
"@metamask/utils>@metamask/superstruct": true,
802+
"@metamask/utils>@scure/base": true,
803+
"@metamask/utils>pony-cause": true,
804+
"@noble/hashes": true,
805+
"browserify>buffer": true,
806+
"nock>debug": true,
807+
"semver": true
808+
}
809+
},
795810
"@metamask/controller-utils>@spruceid/siwe-parser": {
796811
"globals": {
797812
"console.error": true,
@@ -2726,9 +2741,9 @@
27262741
"@metamask/metamask-eth-abis": true,
27272742
"@metamask/name-controller>async-mutex": true,
27282743
"@metamask/network-controller": true,
2729-
"@metamask/rpc-errors": true,
27302744
"@metamask/transaction-controller>@metamask/nonce-tracker": true,
2731-
"@metamask/utils": true,
2745+
"@metamask/transaction-controller>@metamask/rpc-errors": true,
2746+
"@metamask/transaction-controller>@metamask/utils": true,
27322747
"bn.js": true,
27332748
"browserify>buffer": true,
27342749
"eth-method-registry": true,
@@ -2754,6 +2769,27 @@
27542769
"@swc/helpers>tslib": true
27552770
}
27562771
},
2772+
"@metamask/transaction-controller>@metamask/rpc-errors": {
2773+
"packages": {
2774+
"@metamask/transaction-controller>@metamask/utils": true,
2775+
"eth-rpc-errors>fast-safe-stringify": true
2776+
}
2777+
},
2778+
"@metamask/transaction-controller>@metamask/utils": {
2779+
"globals": {
2780+
"TextDecoder": true,
2781+
"TextEncoder": true
2782+
},
2783+
"packages": {
2784+
"@metamask/utils>@metamask/superstruct": true,
2785+
"@metamask/utils>@scure/base": true,
2786+
"@metamask/utils>pony-cause": true,
2787+
"@noble/hashes": true,
2788+
"browserify>buffer": true,
2789+
"nock>debug": true,
2790+
"semver": true
2791+
}
2792+
},
27572793
"@metamask/user-operation-controller": {
27582794
"globals": {
27592795
"fetch": true
@@ -3879,10 +3915,10 @@
38793915
"eth-lattice-keyring>gridplus-sdk>elliptic": true,
38803916
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": true,
38813917
"eth-lattice-keyring>gridplus-sdk>rlp": true,
3882-
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
38833918
"eth-lattice-keyring>gridplus-sdk>uuid": true,
38843919
"ethereumjs-util>ethereum-cryptography>bs58check": true,
38853920
"ethers>@ethersproject/sha2>hash.js": true,
3921+
"ganache>secp256k1": true,
38863922
"lodash": true
38873923
}
38883924
},
@@ -3995,22 +4031,6 @@
39954031
"TextEncoder": true
39964032
}
39974033
},
3998-
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
3999-
"packages": {
4000-
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": true
4001-
}
4002-
},
4003-
"eth-lattice-keyring>gridplus-sdk>secp256k1>elliptic": {
4004-
"packages": {
4005-
"@metamask/ppom-validator>elliptic>brorand": true,
4006-
"@metamask/ppom-validator>elliptic>hmac-drbg": true,
4007-
"@metamask/ppom-validator>elliptic>minimalistic-assert": true,
4008-
"@metamask/ppom-validator>elliptic>minimalistic-crypto-utils": true,
4009-
"bn.js": true,
4010-
"ethers>@ethersproject/sha2>hash.js": true,
4011-
"pumpify>inherits": true
4012-
}
4013-
},
40144034
"eth-lattice-keyring>gridplus-sdk>uuid": {
40154035
"globals": {
40164036
"crypto": true

0 commit comments

Comments
 (0)