1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
Commit Graph

16687 Commits

Author SHA1 Message Date
Vinicius Stevam
ebc6f4d0aa Fix fail to reject multiple approval requests (#19050) 2023-05-15 23:15:58 -02:30
MetaMask Bot
1f5ab1e714 Version v10.30.4 2023-05-16 01:45:21 +00:00
Dan J Miller
42197a35d9
Merge pull request #19159 from MetaMask/Version-v10.30.3
Version v10.30.3 RC
2023-05-15 19:58:28 -02:30
Mark Stacey
f74befc8ba Add unit test coverage for lookupNetwork
The changes to network ID validation are now covered by unit tests.
Test cases for the invalid network ID case have been added as well,
since that is covered on `develop` but not here.
2023-05-15 19:27:00 -02:30
Mark Stacey
a98b40089b Update the changelog 2023-05-15 18:44:27 -02:30
Mark Stacey
77ef06ac57 Support hex and number net_version responses
Hex and number responses from the `net_version` request are now
accepted. While most chains return decimal strings for this request,
some chains were returning hex responses instead and failing our
validation for this request (which was added in v10.30.0). This
resolves that problem.

Support for number responses was added because it likely worked in
older versions as well, so support is maintained to avoid similar
problems.

Fixes #19151
2023-05-15 18:42:38 -02:30
MetaMask Bot
2897607288 Version v10.30.3 2023-05-15 21:04:04 +00:00
MetaMask Bot
33fd7876ff
Version v10.30.2 RC (#19109)
* Version v10.30.2

* Ensure the GasDetailsItem component can handle a tx with a maxPriorityFee of 0 (#19102)

* Ensure the GasDetailsItem component can handle a tx with a maxPriorityFee of 0

* Clean up code

* Update ui/components/app/gas-details-item/gas-details-item.js

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

---------

Co-authored-by: Mark Stacey <markjstacey@gmail.com>

* Backport the `@metamask/message-manager` update to v5 (#19110)

The `@metamask/message-manager` update to v5 has been backported to the
v10.30.x release branch. This update includes three breaking changes,
but two (bump in minimum supported Node.js version, and change in type
from `Map` to `Record`) don't affect this project. The only breaking
change requiring changes was the addition of the `getCurrentChainId`
constructor parameter for the TypedMessageManger.

* Update changelog

---------

Co-authored-by: MetaMask Bot <metamaskbot@users.noreply.github.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2023-05-12 16:49:37 -02:30
Dan J Miller
409759da07
Merge pull request #19022 from MetaMask/Version-v10.30.1
Version v10.30.1 RC
2023-05-05 09:19:33 -02:30
Dan Miller
18b80df043 Update changelog for v10.30.1 2023-05-05 08:23:24 -02:30
Frederik Bolding
e4e9f3c7ac [FLASK] Disable RPC test (#19011)
* Disable RPC test

* Fix lint
2023-05-05 08:21:47 -02:30
MetaMask Bot
e3a7f91095 Version v10.30.1 2023-05-05 08:21:28 -02:30
Dan J Miller
88fa9c10df
Merge pull request #18708 from MetaMask/Version-v10.30.0
Version v10.30.0 RC
2023-05-04 20:57:04 -02:30
OGPoyraz
e1295e489b fix: prevent cancel and speedup transactions to call accept approval (#18846) 2023-05-03 18:43:56 +01:00
Jyoti Puri
02b537c0c1 Enable editing L2 gas on optimism (#18217) 2023-05-03 12:17:18 -02:30
Jyoti Puri
ece1e48200 Consistent message for third party requests across screens (#18873) 2023-05-02 10:03:30 -02:30
Victorien Gauch
b758165c1b fix(18709): fix error when switching to linea testnet using wallet_sw… (#18710)
* fix(18709): fix error when switching to linea testnet using wallet_switchEthereumChain

* fix: update condition to get network config
2023-05-02 10:03:30 -02:30
Bernardo Garces Chapero
ca0a4bec3b Return state when calling EncryptionPublicKeyController.cancelEncryptionPublicKey (#18845)
* returns state

* adds unit test
2023-05-02 10:03:30 -02:30
Mark Stacey
1626f22704 Update outdated browser versions (#18721)
The range of browsers considered to be outdated has been updated to
match our latest browser support policy, which is ~2 years on Chrome,
and the most recent end-of-life extended support release on Firefox.

Comments have been added to help explain how these versions were chosen
as well.
2023-05-02 10:03:30 -02:30
Jyoti Puri
0a9c6023dc Fixing issue with gasLimit in transaction being 0 (#18682) 2023-05-02 10:03:30 -02:30
micaelae
19257361e5 Show Bridge button in TokenOverview component (#18630)
* Show Bridge button in TokenOverview component

* Hide Swap button in token overview page when network is not supported
2023-05-02 10:03:30 -02:30
Thomas Huang
ffc4d6022b
Update changelog for v10.30.0 (#18812)
* [skip e2e] Update changelog for v10.30.0

* Remove MMI change and move terms of use addition to the 'Added' section

---------

Co-authored-by: Dan J Miller <danjm.com@gmail.com>
2023-04-26 15:52:56 -02:30
Dan J Miller
f89f96343b Fix mv3 beta build (#18690)
* Build beta with mv3 enabled

* Ensure firefox manifest is an mv2 version

* Revert "Ensure firefox manifest is an mv2 version"

This reverts commit fed74792b0fec33c3a85f2229eb560559d37afe5.

* Only create beta builds for the chrome platform

* Stop linting firefox for beta
2023-04-26 14:04:29 -02:30
MetaMask Bot
366ffe67c3 Version v10.30.0 2023-04-20 23:15:06 +00:00
Dan J Miller
fee9b0e1a0
Merge pull request #18701 from MetaMask/master-sync
Master sync PR following v10.29.0
2023-04-20 19:41:28 -02:30
Brad Decker
ec57d9b3d4
Merge branch 'develop' into master-sync 2023-04-20 16:03:07 -05:00
Thomas Huang
ba34a2fbfa
Bump coverage targets (#18702) 2023-04-20 13:39:19 -07:00
Dan J Miller
0f1e2c9608 Merge branch 'develop' into master-sync 2023-04-20 17:17:52 -02:30
Thomas Huang
b14b6ba07d
Recovery phrase chips onboarding unit tests (#18249)
* Recovery phrase chips onboarding unit tests

* Add Snapshot for recovery phrase chips

* Add test for classname hidden check and confirm recovery phrase indices

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-20 13:34:58 -05:00
Thomas Huang
33dd7ba976
Onboarding flow switch unit test (#18251)
* Onboarding flow switch unit test

* Fix typo welcom -> welcome
2023-04-20 13:34:24 -05:00
Thomas Huang
8d29fc907d
Create Password onboarding unit test, test-ids, and snapshot (#18257)
* Create Password onboarding unit test, test-ids, and snapshot

* Add button inline snapshot check for import wallet text

* Don't adjust inlineSnapshot formatting

* Get text content

---------

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-20 13:33:50 -05:00
Thomas Huang
b91043cf72
Review Recovery Phrase onboarding unit test (#18301)
* Review Recovery Phrase onboarding unit test

* Add test for isFromReminderParam url navigation

* Lint
2023-04-20 13:33:25 -05:00
Elliot Winkler
73b9c1095a
Update NC setProviderType to clear rpcUrl/nickname (#18675)
In the core version of NetworkController, `setProviderType` sets
`rpcTarget` (its name for `rpcUrl`) and `nickname` to `undefined`.
While it would be better to completely remove these properties, it would
be better to follow suit so that we can make the tests between the two
versions of the controllers more alike.
2023-04-20 15:50:59 -02:30
Thomas Huang
f9f628690c
Metametrics onboarding unit test, snapshot (#18253)
* Metametrics onboarding unit test, snapshot

* Test route navigation in metametrics
2023-04-20 13:12:37 -05:00
Dan J Miller
c80b1beb95
Merge pull request #18488 from MetaMask/Version-v10.29.0
Version v10.29.0 RC
2023-04-20 15:42:30 -02:30
George Marshall
c38cd21629
Adding deprecation notice to javascript version of Icon (#18680)
* Adding deprecation notice to javascript version of Icon

* Fixing lint issue
2023-04-20 11:09:55 -07:00
Thomas Huang
fa02f32e1b
Creation successful test improvements (#18256) 2023-04-20 12:51:51 -05:00
Elliot Winkler
24eae1d3c6
Use fake provider for NetworkController unit tests (#18628)
* Use fake provider for NetworkController unit tests

In the unit tests for NetworkController, it's important to prevent
network requests from occurring. Currently we do that by using Nock.
However, the `core` version of NetworkController uses a fake provider
object. This is arguably a better approach for unit tests because it
prevents us from having to think about the behavior that a specific
middleware may have. For instance, the Infura middleware intercepts
`eth_chainId` to return a static result, and the block cache middleware
replaces the `latest` block tag with the latest block number, making an
extra call to `eth_blockNumber` in doing so. We have to account for
these kinds of behaviors when using Nock, but we do not need to do this
when using a fake provider.

This should make it easier to compare the difference between the unit
tests in this repo vs. in the `core` repo, which should ultimately help
us merge the two controllers together.

* Rename fake-provider-engine to fake-provider

* Rearrange imports

* Move fake-provider and fake-block-tracker into a directory and exclude it from coverage

* Make FakeBlockTracker inert, and fix JSDocs

* Remove generics from FakeProvider

* Call beforeCompleting (and beforeResolving) using async/await

* Fix signature of sendAsync; align other signatures within FakeProvider

* No need to check whether error is not a string

* Don't exclude the provider-api-tests directory from coverage

* Make sure to mock both net_version and eth_getBlockByNumber when testing network status

* Fix FakeProvider so that none of the methods have optional callbacks
2023-04-20 15:21:41 -02:30
Dan J Miller
1c37e07a9d
Update changelog for v10.29.0 (#18668)
Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

Update CHANGELOG.md

Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>

update
2023-04-20 14:38:10 -02:30
Mark Stacey
8de87c0734 Remove mobile sync feature (#18692)
The mobile sync feature has been removed. It has been disabled for
years. When we enable sync again, it will be using a different
implementation. This has already been removed on the mobile side.
2023-04-20 14:36:53 -02:30
Mark Stacey
3776f4ad4c
Remove mobile sync feature (#18692)
The mobile sync feature has been removed. It has been disabled for
years. When we enable sync again, it will be using a different
implementation. This has already been removed on the mobile side.
2023-04-20 14:29:30 -02:30
Dan J Miller
e6b21c1100 Fix coverage targets that were modified incorrectly in a merge conflict resolution 2023-04-20 14:16:23 -02:30
legobeat
567fd93377 deps/security: vm2@3.9.15->3.9.16 (#18555)
CVE-2023-29199  / GHSA-xj72-wvfv-8985
2023-04-20 13:48:02 -02:30
Dan J Miller
9e127f01ce Merge remote-tracking branch 'origin/master' into Version-v10.29.0 2023-04-20 13:47:31 -02:30
Filip Sekulic
6f29c96c2e Replace contract with third party within the token allowance flow (#18101) 2023-04-20 13:42:02 -02:30
Dan J Miller
aaee8ec466 Rename migration 83 to 84 and rename migration 84 to 83 (#18655)
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
2023-04-20 13:41:42 -02:30
Thomas Huang
928bd1c5bb
Import srp onboarding unit tests (#18255) 2023-04-20 09:06:36 -07:00
Thomas Huang
735076b584
Add Network Modal onboarding tests (#18258) 2023-04-20 07:00:27 -07:00
Thomas Huang
9b724d1032
Create New Vault test improvements (#18259)
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-04-20 06:36:03 -07:00
Monte Lai
f9a3bc8070 18566 firefox ledger u2f message (#18570)
* check for user agent

* fix regex

* fix lint

* update link

* add test

* update message

* update coverage

* fix test names

* update text

* add whats new notification for firefox and ledger users

* update action button link

* update notification text

* update viewed notification

* update coverage

* update coverage
2023-04-20 07:44:43 -02:30