Skip to content

Commit

Permalink
Merge pull request #23310 from MetaMask/Version-v11.11.2
Browse files Browse the repository at this point in the history
Version v11.11.2
  • Loading branch information
danjm authored Mar 6, 2024
2 parents 2a871e8 + b5fda83 commit 08a2874
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 37 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [11.11.2]
### Changed
- Update the image in the Staking button What's New popup ([#23330](https://github.com/MetaMask/metamask-extension/pull/23330))

### Fixed
- [MMI] Fixed bug that prevents MMI users from submitting multiple Txs ([#23342](https://github.com/MetaMask/metamask-extension/pull/23342))
- Fix the display of the native currency token symbol in the asset list
- ([#23355](https://github.com/MetaMask/metamask-extension/pull/23355))
- ([#23327](https://github.com/MetaMask/metamask-extension/pull/23327))

## [11.11.1]
### Added
- Adds a staking button to the mainnet Ethereum token list item ([#22347](https://github.com/MetaMask/metamask-extension/pull/22347))
Expand Down Expand Up @@ -4428,7 +4438,8 @@ Update styles and spacing on the critical error page ([#20350](https://github.c
### Uncategorized
- Added the ability to restore accounts from seed words.

[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.11.1...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v11.11.2...HEAD
[11.11.2]: https://github.com/MetaMask/metamask-extension/compare/v11.11.1...v11.11.2
[11.11.1]: https://github.com/MetaMask/metamask-extension/compare/v11.11.0...v11.11.1
[11.11.0]: https://github.com/MetaMask/metamask-extension/compare/v11.10.1...v11.11.0
[11.10.1]: https://github.com/MetaMask/metamask-extension/compare/v11.10.0...v11.10.1
Expand Down
Binary file not shown.
Binary file added app/images/staking-light-mode-preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamask-crx",
"version": "11.11.1",
"version": "11.11.2",
"private": true,
"repository": {
"type": "git",
Expand Down Expand Up @@ -223,7 +223,7 @@
},
"dependencies": {
"@babel/runtime": "^7.23.2",
"@blockaid/ppom_release": "^1.4.1",
"@blockaid/ppom_release": "^1.4.4",
"@ensdomains/content-hash": "^2.5.6",
"@ethereumjs/common": "^3.1.1",
"@ethereumjs/tx": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion shared/notifications/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const UI_NOTIFICATIONS = {
id: Number(NOTIFICATION_STAKING_PORTFOLIO),
date: null,
image: {
src: 'images/portfolio-stake-notification-light-mode.png',
src: 'images/staking-light-mode-preview.png',
width: '100%',
},
},
Expand Down
28 changes: 12 additions & 16 deletions ui/components/app/asset-list/asset-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,11 @@ const AssetList = ({ onClickAsset }) => {
numberOfDecimals: secondaryNumberOfDecimals,
} = useUserPreferencedCurrency(SECONDARY, { ethNumberOfDecimals: 4 });

const [, primaryCurrencyProperties] = useCurrencyDisplay(
selectedAccountBalance,
{
const [primaryCurrencyDisplay, primaryCurrencyProperties] =
useCurrencyDisplay(selectedAccountBalance, {
numberOfDecimals: primaryNumberOfDecimals,
currency: primaryCurrency,
},
);
});

const [secondaryCurrencyDisplay, secondaryCurrencyProperties] =
useCurrencyDisplay(selectedAccountBalance, {
Expand Down Expand Up @@ -190,30 +188,28 @@ const AssetList = ({ onClickAsset }) => {
<TokenListItem
onClick={() => onClickAsset(nativeCurrency)}
title={nativeCurrency}
// The primary and secondary currencies are subject to change based on the user's settings
// TODO: rename this primary/secondary concept here to be more intuitive, regardless of setting
primary={
showPrimaryCurrency(
showSecondaryCurrency(
isOriginalNativeSymbol,
useNativeCurrencyAsPrimaryCurrency,
)
? primaryCurrencyProperties.value ??
secondaryCurrencyProperties.value
: null
? secondaryCurrencyDisplay
: undefined
}
tokenSymbol={
showPrimaryCurrency(
isOriginalNativeSymbol,
useNativeCurrencyAsPrimaryCurrency,
)
useNativeCurrencyAsPrimaryCurrency
? primaryCurrencyProperties.suffix
: null
: secondaryCurrencyProperties.suffix
}
secondary={
showFiat &&
showSecondaryCurrency(
showPrimaryCurrency(
isOriginalNativeSymbol,
useNativeCurrencyAsPrimaryCurrency,
)
? secondaryCurrencyDisplay
? primaryCurrencyDisplay
: undefined
}
tokenImage={balanceIsLoading ? null : primaryTokenImage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ exports[`Token Cell should match snapshot 1`] = `
5.000
TEST
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ exports[`TokenListItem should render correctly 1`] = `
data-testid="multichain-token-list-item-value"
>
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const TokenListItem = ({
variant={TextVariant.bodyMd}
textAlign={TextAlign.End}
>
{primary} {tokenSymbol}{' '}
{primary} {isNativeCurrency ? '' : tokenSymbol}
</Text>
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`Blockaid Banner Alert should render 'danger' UI when securityAlertRespo
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Malicious%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Malicious%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -142,7 +142,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -234,7 +234,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -327,7 +327,7 @@ exports[`Blockaid Banner Alert should render details section even when features
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -433,7 +433,7 @@ exports[`Blockaid Banner Alert should render details when provided 1`] = `
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%2C%22reproduce%22%3A%22%5B%5C%22Operator%20is%20an%20EOA%5C%22%2C%5C%22Operator%20is%20untrusted%20according%20to%20previous%20activity%5C%22%5D%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%2C%22reproduce%22%3A%22%5B%5C%22Operator%20is%20an%20EOA%5C%22%2C%5C%22Operator%20is%20untrusted%20according%20to%20previous%20activity%5C%22%5D%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down Expand Up @@ -527,7 +527,7 @@ exports[`Blockaid Banner Alert should render link to report url 1`] = `
Something doesn't look right?
<a
class="mm-box mm-text mm-button-base mm-button-link mm-button-link--size-inherit mm-text--body-md-medium mm-box--padding-0 mm-box--padding-right-0 mm-box--padding-left-0 mm-box--display-inline-flex mm-box--justify-content-center mm-box--align-items-center mm-box--color-primary-default mm-box--background-color-transparent"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
href="https://blockaid-false-positive-portal.metamask.io?data=%7B%22blockaidVersion%22%3A%221.4.4%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import * as Sentry from '@sentry/browser';
import { fireEvent, screen } from '@testing-library/react';
import BlockaidPackage from '@blockaid/ppom_release/package.json';

import { renderWithProvider } from '../../../../../../test/lib/render-helpers';
import { Severity } from '../../../../../helpers/constants/design-system';
Expand Down Expand Up @@ -243,7 +244,7 @@ describe('Blockaid Banner Alert', () => {

const elm = getByRole('link', { name: 'Report an issue' });
expect(elm.href).toBe(
'https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom',
`https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%22${BlockaidPackage.version}%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom`,
);
});

Expand All @@ -264,7 +265,7 @@ describe('Blockaid Banner Alert', () => {

const elm = getByRole('link', { name: 'Report an issue' });
expect(elm.href).toBe(
'https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom',
`https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%22${BlockaidPackage.version}%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom`,
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,14 @@ const mapStateToProps = (state, ownProps) => {
const isMultiLayerFeeNetwork = getIsMultiLayerFeeNetwork(state);
const isUsingPaymaster = getIsUsingPaymaster(state);

const isSigningOrSubmitting = Boolean(
let isSigningOrSubmitting = Boolean(
getApprovedAndSignedTransactions(state).length,
);

///: BEGIN:ONLY_INCLUDE_IF(build-mmi)
isSigningOrSubmitting = false;
///: END:ONLY_INCLUDE_IF

return {
balance,
fromAddress,
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1683,10 +1683,10 @@ __metadata:
languageName: node
linkType: hard

"@blockaid/ppom_release@npm:^1.4.1":
version: 1.4.1
resolution: "@blockaid/ppom_release@npm:1.4.1"
checksum: 6fff1d24cdfe5a1457b7f64b169f225e67ccbed48c3f5d61b4d24514b7b60cf67bbf130808d7b9cd88d490a86d689afd4b90820929d140526fcd8759b3a4bc6b
"@blockaid/ppom_release@npm:^1.4.4":
version: 1.4.4
resolution: "@blockaid/ppom_release@npm:1.4.4"
checksum: 71f6276b21a59bc3b16d3335a266d199071e98009bb789ce26ab066da650b72068dff7743c3fbe86fef6dcbcef1eccef0e90362686283865b34514a956a5f4cd
languageName: node
linkType: hard

Expand Down Expand Up @@ -24037,7 +24037,7 @@ __metadata:
"@babel/preset-typescript": "npm:^7.23.2"
"@babel/register": "npm:^7.22.15"
"@babel/runtime": "npm:^7.23.2"
"@blockaid/ppom_release": "npm:^1.4.1"
"@blockaid/ppom_release": "npm:^1.4.4"
"@ensdomains/content-hash": "npm:^2.5.6"
"@ethereumjs/common": "npm:^3.1.1"
"@ethereumjs/tx": "npm:^4.1.1"
Expand Down

0 comments on commit 08a2874

Please sign in to comment.