Skip to content

Commit ca343f3

Browse files
authored
Merge pull request MetaMask#15475 from MetaMask/Version-v10.18.3
Version v10.18.3 RC
2 parents 11763a1 + ceb0684 commit ca343f3

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
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+
## [10.18.3]
10+
### Fixed
11+
- Prevent confirm screen from showing method name from contract registry for transactions created within MetaMask ([#15472](https://github.com/MetaMask/metamask-extension/pull/15472))
12+
913
## [10.18.2]
1014
### Changed
1115
- Enhance approval screen title logic ([#15406](https://github.com/MetaMask/metamask-extension/pull/15406))
@@ -3103,7 +3107,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31033107
### Uncategorized
31043108
- Added the ability to restore accounts from seed words.
31053109

3106-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.2...HEAD
3110+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.3...HEAD
3111+
[10.18.3]: https://github.com/MetaMask/metamask-extension/compare/v10.18.2...v10.18.3
31073112
[10.18.2]: https://github.com/MetaMask/metamask-extension/compare/v10.18.1...v10.18.2
31083113
[10.18.1]: https://github.com/MetaMask/metamask-extension/compare/v10.18.0...v10.18.1
31093114
[10.18.0]: https://github.com/MetaMask/metamask-extension/compare/v10.17.0...v10.18.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metamask-crx",
3-
"version": "10.18.2",
3+
"version": "10.18.3",
44
"private": true,
55
"repository": {
66
"type": "git",

ui/pages/confirm-transaction-base/confirm-transaction-base.component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,10 @@ export default class ConfirmTransactionBase extends Component {
10481048
} = this.getNavigateTxData();
10491049

10501050
let functionType;
1051-
if (txData.type === TRANSACTION_TYPES.CONTRACT_INTERACTION) {
1051+
if (
1052+
txData.type === TRANSACTION_TYPES.CONTRACT_INTERACTION &&
1053+
txData.origin !== 'metamask'
1054+
) {
10521055
functionType = getMethodName(name);
10531056
}
10541057

ui/pages/confirm-transaction/confirm-transaction.component.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class ConfirmTransaction extends Component {
6868
sendTo,
6969
history,
7070
mostRecentOverviewPage,
71-
transaction: { txParams: { data } = {} } = {},
71+
transaction: { txParams: { data } = {}, origin } = {},
7272
getContractMethodData,
7373
transactionId,
7474
paramsTransactionId,
@@ -91,7 +91,9 @@ export default class ConfirmTransaction extends Component {
9191
return;
9292
}
9393

94-
getContractMethodData(data);
94+
if (origin !== 'metamask') {
95+
getContractMethodData(data);
96+
}
9597

9698
const txId = transactionId || paramsTransactionId;
9799
if (txId) {
@@ -107,7 +109,7 @@ export default class ConfirmTransaction extends Component {
107109
componentDidUpdate(prevProps) {
108110
const {
109111
setTransactionToConfirm,
110-
transaction: { txData: { txParams: { data } = {} } = {} },
112+
transaction: { txData: { txParams: { data } = {}, origin } = {} },
111113
clearConfirmTransaction,
112114
getContractMethodData,
113115
paramsTransactionId,
@@ -124,8 +126,10 @@ export default class ConfirmTransaction extends Component {
124126
prevProps.paramsTransactionId !== paramsTransactionId
125127
) {
126128
clearConfirmTransaction();
127-
getContractMethodData(data);
128129
setTransactionToConfirm(paramsTransactionId);
130+
if (origin !== 'metamask') {
131+
getContractMethodData(data);
132+
}
129133
} else if (
130134
prevProps.transactionId &&
131135
!transactionId &&

0 commit comments

Comments
 (0)