Skip to content

Commit 11763a1

Browse files
authored
Merge pull request MetaMask#15454 from MetaMask/Version-v10.18.2
Version v10.18.2 RC
2 parents 0315a3d + 298c2d8 commit 11763a1

File tree

18 files changed

+296
-180
lines changed

18 files changed

+296
-180
lines changed

CHANGELOG.md

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

77
## [Unreleased]
88

9+
## [10.18.2]
10+
### Changed
11+
- Enhance approval screen title logic ([#15406](https://github.com/MetaMask/metamask-extension/pull/15406))
12+
13+
### Fixed
14+
- Ensure smart contract interactions are properly represented on the confirm screen ([#15446](https://github.com/MetaMask/metamask-extension/pull/15446))
15+
- Fix update of max amount in send flow after network switch([#15444](https://github.com/MetaMask/metamask-extension/pull/15444))
16+
- Fix to ensure user can access full screen editing of network forms from the popup ([#15442](https://github.com/MetaMask/metamask-extension/pull/15442))
17+
- Possibly fix bug which crashes firefox on startup after upgrade to v10.18.1 ([#15425](https://github.com/MetaMask/metamask-extension/pull/15425))
18+
- Fix blocking of editing transactions that had a contract address recipient but no tx data ([#15424](https://github.com/MetaMask/metamask-extension/pull/15424))
19+
- Fix error that could leave the app in a stuck state when quickly moving between the send screen and other screens ([#15420](https://github.com/MetaMask/metamask-extension/pull/15420))
20+
- Fix send screen for Optimism network ([#15419](https://github.com/MetaMask/metamask-extension/pull/15419))
21+
- Fix to ensure the correct balance is used when validating send amounts ([#15449](https://github.com/MetaMask/metamask-extension/pull/15449))
22+
- Fix error that makes app unusable after clicking activity list items for token approval transactions ([#15398](https://github.com/MetaMask/metamask-extension/pull/15398))
23+
924
## [10.18.1]
1025
### Changed
1126
- Move the metrics opt-in screen to the second screen of the onboarding flow ([#15313](https://github.com/MetaMask/metamask-extension/pull/15313))
@@ -3088,7 +3103,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30883103
### Uncategorized
30893104
- Added the ability to restore accounts from seed words.
30903105

3091-
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.1...HEAD
3106+
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.2...HEAD
3107+
[10.18.2]: https://github.com/MetaMask/metamask-extension/compare/v10.18.1...v10.18.2
30923108
[10.18.1]: https://github.com/MetaMask/metamask-extension/compare/v10.18.0...v10.18.1
30933109
[10.18.0]: https://github.com/MetaMask/metamask-extension/compare/v10.17.0...v10.18.0
30943110
[10.17.0]: https://github.com/MetaMask/metamask-extension/compare/v10.16.2...v10.17.0

app/scripts/controllers/transactions/index.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
addHexPrefix,
1818
getChainType,
1919
} from '../../lib/util';
20-
import { TRANSACTION_NO_CONTRACT_ERROR_KEY } from '../../../../ui/helpers/constants/error-keys';
2120
import { calcGasTotal } from '../../../../ui/pages/send/send.utils';
2221
import { getSwapsTokensReceivedFromTxMeta } from '../../../../ui/pages/swaps/swaps.util';
2322
import {
@@ -75,6 +74,7 @@ const VALID_UNAPPROVED_TRANSACTION_TYPES = [
7574
TRANSACTION_TYPES.SIMPLE_SEND,
7675
TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER,
7776
TRANSACTION_TYPES.TOKEN_METHOD_TRANSFER_FROM,
77+
TRANSACTION_TYPES.CONTRACT_INTERACTION,
7878
];
7979

8080
/**
@@ -1006,10 +1006,9 @@ export default class TransactionController extends EventEmitter {
10061006
* Gets default gas limit, or debug information about why gas estimate failed.
10071007
*
10081008
* @param {Object} txMeta - The txMeta object
1009-
* @param {string} getCodeResponse - The transaction category code response, used for debugging purposes
10101009
* @returns {Promise<Object>} Object containing the default gas limit, or the simulation failure object
10111010
*/
1012-
async _getDefaultGasLimit(txMeta, getCodeResponse) {
1011+
async _getDefaultGasLimit(txMeta) {
10131012
const chainId = this._getCurrentChainId();
10141013
const customNetworkGasBuffer = CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP[chainId];
10151014
const chainType = getChainType(chainId);
@@ -1019,21 +1018,9 @@ export default class TransactionController extends EventEmitter {
10191018
} else if (
10201019
txMeta.txParams.to &&
10211020
txMeta.type === TRANSACTION_TYPES.SIMPLE_SEND &&
1022-
chainType !== 'custom'
1021+
chainType !== 'custom' &&
1022+
!txMeta.txParams.data
10231023
) {
1024-
// if there's data in the params, but there's no contract code, it's not a valid transaction
1025-
if (txMeta.txParams.data) {
1026-
const err = new Error(
1027-
'TxGasUtil - Trying to call a function on a non-contract address',
1028-
);
1029-
// set error key so ui can display localized error message
1030-
err.errorKey = TRANSACTION_NO_CONTRACT_ERROR_KEY;
1031-
1032-
// set the response on the error so that we can see in logs what the actual response was
1033-
err.getCodeResponse = getCodeResponse;
1034-
throw err;
1035-
}
1036-
10371024
// This is a standard ether simple send, gas requirement is exactly 21k
10381025
return { gasLimit: GAS_LIMITS.SIMPLE };
10391026
}

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.1",
3+
"version": "10.18.2",
44
"private": true,
55
"repository": {
66
"type": "git",

ui/components/app/user-preferenced-currency-display/user-preferenced-currency-display.component.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default function UserPreferencedCurrencyDisplay({
1313
showEthLogo,
1414
type,
1515
showFiat,
16+
showCurrencySuffix,
1617
...restProps
1718
}) {
1819
const { currency, numberOfDecimals } = useUserPreferencedCurrency(type, {
@@ -43,6 +44,7 @@ export default function UserPreferencedCurrencyDisplay({
4344
data-testid={dataTestId}
4445
numberOfDecimals={numberOfDecimals}
4546
prefixComponent={prefixComponent}
47+
suffix={showCurrencySuffix && !showEthLogo && currency}
4648
/>
4749
);
4850
}
@@ -68,4 +70,5 @@ UserPreferencedCurrencyDisplay.propTypes = {
6870
PropTypes.number,
6971
]),
7072
showFiat: PropTypes.bool,
73+
showCurrencySuffix: PropTypes.bool,
7174
};

0 commit comments

Comments
 (0)