Skip to content

Commit

Permalink
Merge branch 'develop' into navigation-and-reject-all-signature-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
VSaric authored Jan 11, 2023
2 parents cb3cf68 + 5a11388 commit 80c11c3
Show file tree
Hide file tree
Showing 38 changed files with 820 additions and 116 deletions.
22 changes: 0 additions & 22 deletions .yarn/patches/luxon-npm-3.1.0-16e2508500.patch

This file was deleted.

40 changes: 40 additions & 0 deletions .yarn/patches/luxon-npm-3.2.1-56f8d97395.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/build/cjs-browser/luxon.js b/build/cjs-browser/luxon.js
index 776c38ae1679eaed97ef5fa9a666e37e48747df6..336fb0ddfffd12604b5ab1609ba0685755739c9c 100644
--- a/build/cjs-browser/luxon.js
+++ b/build/cjs-browser/luxon.js
@@ -4226,7 +4226,7 @@ var Interval = /*#__PURE__*/function () {
* @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p
* @return {string}
*/;
- _proto.toLocaleString = function toLocaleString(formatOpts, opts) {
+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) {
if (formatOpts === void 0) {
formatOpts = DATE_SHORT;
}
@@ -4234,7 +4234,7 @@ var Interval = /*#__PURE__*/function () {
opts = {};
}
return this.isValid ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this) : INVALID$1;
- }
+ }})

/**
* Returns an ISO 8601-compliant string representation of this Interval.
@@ -6598,7 +6598,7 @@ var DateTime = /*#__PURE__*/function () {
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
* @return {string}
*/;
- _proto.toLocaleString = function toLocaleString(formatOpts, opts) {
+ Reflect.defineProperty(_proto, 'toLocaleString', { value: function toLocaleString(formatOpts, opts) {
if (formatOpts === void 0) {
formatOpts = DATE_SHORT;
}
@@ -6606,7 +6606,7 @@ var DateTime = /*#__PURE__*/function () {
opts = {};
}
return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID;
- }
+ }})

/**
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.23.3]

## [10.23.2]
### Fixed
- Improve performance on signature request screens ([#17052](https://github.com/MetaMask/metamask-extension/pull/17052))
Expand Down Expand Up @@ -3344,7 +3346,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Uncategorized
- Added the ability to restore accounts from seed words.

[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.23.2...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.23.3...HEAD
[10.23.3]: https://github.com/MetaMask/metamask-extension/compare/v10.23.2...v10.23.3
[10.23.2]: https://github.com/MetaMask/metamask-extension/compare/v10.23.1...v10.23.2
[10.23.1]: https://github.com/MetaMask/metamask-extension/compare/v10.23.0...v10.23.1
[10.23.0]: https://github.com/MetaMask/metamask-extension/compare/v10.22.3...v10.23.0
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metamask-crx",
"version": "10.23.2",
"version": "10.23.3",
"private": true,
"repository": {
"type": "git",
Expand Down Expand Up @@ -175,14 +175,13 @@
"web3@^0.20.7": "patch:web3@npm%3A0.20.7#./.yarn/patches/web3-npm-0.20.7-ee7ef00c57.patch",
"watchify@^4.0.0": "patch:watchify@npm%3A4.0.0#./.yarn/patches/watchify-npm-4.0.0-4fd965dd49.patch",
"undeclared-identifiers@^1.1.2": "patch:undeclared-identifiers@npm%3A1.1.2#./.yarn/patches/undeclared-identifiers-npm-1.1.2-13d6792e9e.patch",
"luxon@^1.26.0": "patch:luxon@npm%3A1.26.0#./.yarn/patches/luxon-npm-1.26.0-09624ad59c.patch",
"sass@^1.32.4": "patch:sass@npm%3A1.35.2#./.yarn/patches/sass-npm-1.35.2-6df4e15d13.patch",
"sass@^1.26.3": "patch:sass@npm%3A1.35.2#./.yarn/patches/sass-npm-1.35.2-6df4e15d13.patch",
"sass@^1.29.0": "patch:sass@npm%3A1.35.2#./.yarn/patches/sass-npm-1.35.2-6df4e15d13.patch",
"squirrelly@^8.0.8": "patch:squirrelly@npm%3A8.0.8#./.yarn/patches/squirrelly-npm-8.0.8-1d17420d8d.patch",
"stylelint@^13.6.1": "patch:stylelint@npm%3A13.6.1#./.yarn/patches/stylelint-npm-13.6.1-47aaddf62b.patch",
"luxon@^3.1.0": "patch:luxon@npm%3A3.1.0#./.yarn/patches/luxon-npm-3.1.0-16e2508500.patch",
"luxon@^3.0.1": "patch:luxon@npm%3A3.1.0#./.yarn/patches/luxon-npm-3.1.0-16e2508500.patch",
"luxon@^3.0.1": "patch:luxon@npm%3A3.2.1#./.yarn/patches/luxon-npm-3.2.1-56f8d97395.patch",
"luxon@^3.2.1": "patch:luxon@npm%3A3.2.1#./.yarn/patches/luxon-npm-3.2.1-56f8d97395.patch",
"improved-yarn-audit@^3.0.0": "patch:improved-yarn-audit@npm%3A3.0.0#./.yarn/patches/improved-yarn-audit-npm-3.0.0-3e37ee431a.patch",
"lockfile-lint-api@^5.4.6": "patch:lockfile-lint-api@npm%3A5.4.6#./.yarn/patches/lockfile-lint-api-npm-5.4.6-dc86b73900.patch",
"symbol-observable": "^2.0.3",
Expand Down Expand Up @@ -290,7 +289,7 @@
"localforage": "^1.9.0",
"lodash": "^4.17.21",
"loglevel": "^1.4.1",
"luxon": "^3.1.0",
"luxon": "^3.2.1",
"nanoid": "^2.1.6",
"nonce-tracker": "^1.0.0",
"obj-multiplex": "^1.0.0",
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/snaps/test-snap-bip-32.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe('Test Snap bip-32', function () {
await driver.scrollToElement(snapButton1);
await driver.delay(1000);
await driver.clickElement('#connectBip32');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -79,6 +80,9 @@ describe('Test Snap bip-32', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// switch back to test-snaps window
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/snaps/test-snap-bip-44.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ describe('Test Snap bip-44', function () {

// navigate to test snaps page and connect
await driver.driver.get(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);
const snapButton1 = await driver.findElement('#connectBip44Snap');
await driver.scrollToElement(snapButton1);
await driver.delay(1000);
await driver.clickElement('#connectBip44Snap');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -77,6 +79,9 @@ describe('Test Snap bip-44', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/snaps/test-snap-confirm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ describe('Test Snap Confirm', function () {

// navigate to test snaps page and connect
await driver.driver.get(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);
const snapButton1 = await driver.findElement('#connectConfirmSnap');
await driver.scrollToElement(snapButton1);
await driver.delay(1000);
await driver.clickElement('#connectConfirmSnap');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -66,6 +68,9 @@ describe('Test Snap Confirm', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// switch back to test snaps page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
5 changes: 5 additions & 0 deletions test/e2e/snaps/test-snap-error.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ describe('Test Snap Error', function () {

// navigate to test snaps page and connect
await driver.openNewPage(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);
const snapButton = await driver.findElement('#connectErrorSnap');
await driver.scrollToElement(snapButton);
await driver.delay(1000);
await driver.clickElement('#connectErrorSnap');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -67,6 +69,9 @@ describe('Test Snap Error', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
7 changes: 7 additions & 0 deletions test/e2e/snaps/test-snap-installed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('Test Snap Installed', function () {
const confirmButton = await driver.findElement('#connectConfirmSnap');
await driver.scrollToElement(confirmButton);
await driver.clickElement('#connectConfirmSnap');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -66,6 +67,9 @@ describe('Test Snap Installed', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down Expand Up @@ -102,6 +106,9 @@ describe('Test Snap Installed', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);

Expand Down
7 changes: 6 additions & 1 deletion test/e2e/snaps/test-snap-management.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ describe('Test Snap Management', function () {

// open a new tab and navigate to test snaps page and connect
await driver.openNewPage(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);

// find and scroll to the correct card and click first
const snapButton = await driver.findElement('#connectNotification');
await driver.scrollToElement(snapButton);
await driver.delay(500);
await driver.delay(1000);
await driver.clickElement('#connectNotification');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -68,6 +70,9 @@ describe('Test Snap Management', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// switch to the original MM tab
const extensionPage = windowHandles[0];
await driver.switchToWindow(extensionPage);
Expand Down
4 changes: 4 additions & 0 deletions test/e2e/snaps/test-snap-managestate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('Test Snap manageState', function () {
await driver.scrollToElement(snapButton1);
await driver.delay(1000);
await driver.clickElement('#connectManageState');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -69,6 +70,9 @@ describe('Test Snap manageState', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// fill and click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
6 changes: 5 additions & 1 deletion test/e2e/snaps/test-snap-notification.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ describe('Test Snap Notification', function () {
// find and scroll down to snapId5 and connect
const snapButton = await driver.findElement('#connectNotification');
await driver.scrollToElement(snapButton);
await driver.delay(500);
await driver.delay(1000);
await driver.clickElement('#connectNotification');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand Down Expand Up @@ -69,6 +70,9 @@ describe('Test Snap Notification', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/snaps/test-snap-txinsights.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe('Test Snap TxInsights', function () {
await driver.scrollToElement(snapButton1);
await driver.delay(1000);
await driver.clickElement('#connectInsightsSnap');
await driver.delay(1000);

// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
Expand All @@ -55,6 +56,7 @@ describe('Test Snap TxInsights', function () {
10000,
);

// delay for npm installation
await driver.delay(2000);

// switch to metamask extension
Expand Down
11 changes: 9 additions & 2 deletions test/e2e/snaps/test-snap-update.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ describe('Test Snap update', function () {

// open a new tab and navigate to test snaps page and connect
await driver.driver.get(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);

// find and scroll to the correct card and click first
const snapButton = await driver.findElement('#connectUpdateNew');
const snapButton = await driver.findElement('#connectUpdate');
await driver.scrollToElement(snapButton);
await driver.delay(1000);
await driver.clickElement('#connectUpdate');

await driver.delay(2000);

// switch to metamask extension and click connect
Expand Down Expand Up @@ -78,6 +78,9 @@ describe('Test Snap update', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// navigate to test snap page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand All @@ -88,6 +91,7 @@ describe('Test Snap update', function () {
await driver.scrollToElement(snapButton2);
await driver.delay(1000);
await driver.clickElement('#connectUpdateNew');
await driver.delay(1000);

// switch to metamask extension and click connect
await driver.waitUntilXWindowHandles(2, 1000, 10000);
Expand All @@ -104,6 +108,9 @@ describe('Test Snap update', function () {
tag: 'button',
});

// delay for npm installation
await driver.delay(2000);

// navigate to test snap page
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
Expand Down
3 changes: 1 addition & 2 deletions ui/components/app/deposit-popover/deposit-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
getSelectedAddress,
getIsBuyableTransakChain,
getIsBuyableMoonPayChain,
getIsBuyableWyreChain,
getIsBuyableCoinbasePayChain,
getIsBuyableCoinbasePayToken,
getIsBuyableTransakToken,
Expand All @@ -46,7 +45,7 @@ const DepositPopover = ({ onClose, token }) => {
const address = useSelector(getSelectedAddress);
const isBuyableTransakChain = useSelector(getIsBuyableTransakChain);
const isBuyableMoonPayChain = useSelector(getIsBuyableMoonPayChain);
const isBuyableWyreChain = useSelector(getIsBuyableWyreChain);
const isBuyableWyreChain = false;
const isBuyableCoinbasePayChain = useSelector(getIsBuyableCoinbasePayChain);

const isTokenBuyableCoinbasePay = useSelector((state) =>
Expand Down
Loading

0 comments on commit 80c11c3

Please sign in to comment.