MetaMask Bot
5456ec1bf1
New Crowdin translations by Github Action ( #15999 )
...
Co-authored-by: metamaskbot <metamaskbot@users.noreply.github.com>
2023-01-04 14:22:06 -05:00
Brad Decker
35e3b7e82e
fix audit failure ( #17079 )
2023-01-04 11:29:37 -06:00
Vladimir Saric
4d12c36cf8
Align custom spending cap Max button in approve screen for multiple languages ( #16927 )
...
* Align custom spending cap Max button in approve screen for multiple languages
* Modify some css styles and adding Box props
* Using ButtonLink component instead of <button/>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2023-01-04 22:31:52 +05:30
Adnan Sahovic
54cbc66120
Improve transaction complete popup ( #16300 )
...
* modified transaction complete popup
deleted upperCase function
deleted replaceAll
fixed lint
* resolved conflicts
* modified view const
Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
2023-01-04 09:40:42 -06:00
Vladimir Saric
23653f4c08
Added unit tests and story for SignatureRequestData component ( #16759 )
2023-01-04 09:31:23 -06:00
Brad Decker
14a004c623
Merge pull request #17057 from MetaMask/Version-v10.23.2
2022-12-22 17:47:13 -05:00
Dan J Miller
754c637052
Update changelog for v10.23.2
2022-12-22 16:50:47 -03:30
Frederik Bolding
784ad66d16
Improve SignatureRequest
performance ( #17052 )
...
* Improve SignatureRequestData performance
* Memoize more selectors
2022-12-22 16:48:14 -03:30
MetaMask Bot
01634752eb
Version v10.23.2
2022-12-22 20:13:54 +00:00
Frederik Bolding
05d50eee73
Improve SignatureRequest
performance ( #17052 )
...
* Improve SignatureRequestData performance
* Memoize more selectors
2022-12-22 16:37:51 -03:30
seaona
c99d345b5b
Add explanation for user facing changes on design tokens and remove controllers entry on Changelog
2022-12-22 20:04:38 +01:00
HowardBraham
b9d9112b97
Prevent account name collisions ( #16752 )
...
* dealt with most of the problems in the Create Account dialog
* Fixed "newAccountNumberName" localizations
* In another language, don't allow accounts named, for instance, Cuenta 3
* Editing an account name later now follows the same rules
* Fixing lint errors
* Responding to the review by @adonesky1
* Worked with @montelaidev to alter the RegExp, in order to catch spaces before and after the account name
* Fixed line breaks for eslint
2022-12-22 11:27:31 -06:00
seaona
57fbc94643
Added Changelog entry for cherry-picked PR
2022-12-22 18:11:41 +01:00
weizman
3cf5ef642f
Revert "Integrate new LavaMoat scuttling protection feature ( #16994 )" ( #17043 )
2022-12-22 17:26:53 +02:00
Mark Stacey
b0959e221b
Add codefi.network
host permission ( #17029 )
...
This host permission bypasses cross-origin restrictions for our
internal APIs (see here for details on host permissions and CORs [1]).
This acts as a safeguard, ensuring that if CORs is misconfigured on
these endpoints, everything will still work.
[1]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions#host_permissions
2022-12-22 09:56:33 -03:30
chloeYue
d66db28ae6
Add e2e test for reset account ( #16996 )
...
* add test for reset account
2022-12-22 14:16:09 +01:00
amerkadicE
30a5208be7
Track when token balance is changed to update value on approval screen ( #16964 )
...
* Track when token balance is changed to update value on approval screen
* Code refactor
* Fix unit test
* Fix sign approval balance
* Refactor code
2022-12-22 12:04:23 +01:00
Ariella Vu
8f3451396f
i18n: fix missing locale for "en" error ( #17014 )
...
on locale change
2022-12-22 12:02:48 +01:00
Mark Stacey
d222f652c3
Upgrade prettier-plugin-sort-json
to v1 ( #17026 )
...
This upgrade includes no changes relevant to our usage of this plugin.
2022-12-21 19:17:45 -03:30
Daniel
2832f8a97e
Update quote selection for Optimism ( #16998 )
2022-12-21 20:59:34 +01:00
Guillaume Roux
3cfef11f71
[FLASK] Resolve snap_dialog
approval on close ( #16801 )
2022-12-21 20:15:52 +01:00
Nidhi Kumari
f8881a01db
AvatarWithBadge Housekeeping ( #16985 )
...
* updated classnames
* updated readme and tests for avatar with badge
* updated constants in root
* replacing BADGE_POSITIONS with AVATAR_WITH_BADGE_BADGE_POSITIONS
2022-12-22 00:36:40 +05:30
weizman
5d320ceec6
Integrate new LavaMoat scuttling protection feature ( #16994 )
...
Co-authored-by: kumavis <kumavis@users.noreply.github.com>
Co-authored-by: kumavis <aaron@kumavis.me>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-12-21 12:54:30 -06:00
Ariella Vu
25e9184d9a
i18n: fix missing locale for "en" error ( #17014 )
...
on locale change
2022-12-22 00:31:06 +07:00
Dan J Miller
35b07c7431
Add lavamoat policy override for react-responsive-carousel ( #16955 )
2022-12-21 14:25:01 +01:00
seaona
0123c9c859
Changelog with new entries from last cherry-picked commits
2022-12-21 11:26:49 +01:00
Brad Decker
ee321971e7
add new yarn3 paths to circleci cache ( #16873 )
2022-12-20 15:33:18 -06:00
Alex Donesky
1a842aabb6
Replace eth-optimism/contracts
package with local snippet of gas price ABI and address ( #16891 )
2022-12-20 14:05:07 -06:00
Zachary Belford
6f6984fa58
Moved subscribe and filter into network controller ( #16693 )
...
Our middleware for handling subscription and filter-related methods (`eth-json-rpc-filters`) currently lives in our RPC pipeline ahead of the network stack. This commit moves this middleware to the network client middleware instead. There are two reasons for this change. First, this middleware wraps RPC methods that are supported by the network. Second, it is necessary for this middleware to live with the network client so that it will aid us in unifying the NetworkController in this repo and the NetworkController in the `controllers` repo.
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2022-12-20 10:28:09 -07:00
dragana8
e7e72cf6fc
Fix insufficient currency buy or receive error message ( #16979 )
2022-12-20 17:44:18 +01:00
Dan J Miller
cb2f25f767
Show user the general contract interaction screen for token approvals, when the asset standard is undefined ( #16765 )
...
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2022-12-20 17:41:21 +01:00
amerkadicE
362497ed64
Track when token balance is changed to update value on approval screen ( #16964 )
...
* Track when token balance is changed to update value on approval screen
* Code refactor
* Fix unit test
* Fix sign approval balance
* Refactor code
2022-12-20 09:24:28 -03:30
Jyoti Puri
c61d44a3be
Making add un-approved transaction idempotent ( #16995 )
2022-12-20 18:01:37 +05:30
Frederik Bolding
7e7a0f1f72
[FLASK] Use custom UI for transaction insights ( #16912 )
...
* Allow custom UI for transaction insights
* Fix margin
* Small fixes to CSS and selectors
* Rename property
* Fix E2E locally
* Bump test-snaps
* Bump test-snaps
2022-12-20 11:44:49 +01:00
Guillaume Roux
85f260c22d
[FLASK] Use custom UI for dialogs ( #16973 )
...
* update dialog templates to use custom UI
* add TODO comments
* Fix showDialog hook and destructuring
* Regen LavaMoat policies
* Re-add legacy snap confirmation for now
* Fix circular dependency issue
* Revert change to token-util
* Fix lint
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-12-20 11:44:22 +01:00
Frederik Bolding
abe0204171
[FLASK] snaps-monorepo@0.27.1
( #16981 )
...
* snaps-monorepo@0.27.0
* Regen LavaMoat policies
* Remove unused constructor arg
* snaps-monorepo@0.27.1
2022-12-20 11:44:05 +01:00
Olusegun Akintayo
13de51e748
Security and Privacy Settings Re-org ( #16756 )
2022-12-19 18:46:36 +01:00
Dan J Miller
22fc60a341
Show user the general contract interaction screen for token approvals, when the asset standard is undefined ( #16765 )
...
Co-authored-by: Jyoti Puri <jyotipuri@gmail.com>
2022-12-19 13:38:28 -03:30
mirjanaKukic
0992dd5437
added new test for adding custom network ( #15484 )
...
add custom network and switch to network
lint fix
add custom network and not switch the network
add wait for selector
lint fix
fix
add waitforselector
fix
yarn lock
added delay
added comments
lint fix
added rpc networks in mock-e2e.js
lint fix
fix
yarn lock
alphabetic order of the array in mock-e2e
fix
lint fix
fix
removed unnecessary networks
changed blacklistedHosts
added fixture builder
changed to Arbitrum One network
2022-12-19 16:46:07 +00:00
legobeat
7bdb91c089
test/e2e: increase timeout 60s -> 80s ( #16592 )
2022-12-19 09:27:47 -06:00
seaona
281f8e16b9
Changelog sync with master
2022-12-19 11:07:23 +01:00
seaona
8c0678eb99
Merge branch 'master' into Version-v10.24.0
2022-12-19 11:06:54 +01:00
Ariella Vu
e0644a64f6
Fix token balance precision on confirm token approval page from soon-to-be-deprecated token allowance flow ( #16934 )
...
* ConfirmToken: fix token balance onboarding v1
this UI/UX should be deprecated following PR#16740, maybe v10.25
* TokenApproval: use precision for token balance
* EditApproval: calc utilizing existing util
2022-12-19 10:58:23 +01:00
Dan J Miller
60bfdf51d6
remove warning on revoke approval for all nfts ( #16953 )
...
Co-authored-by: EresDev <eresdev@hotmail.com>
2022-12-19 10:57:42 +01:00
Dan J Miller
557b5de08d
Sanitize privacy sensitive data before sending to sentry. ( #16780 )
...
* Sanitize privacy sensitive data before sending to sentry.
Temp
Near complete
Complete
* Temp
* Fix url error message rewrite
* Add unit tests and cleanup code
* Improvements
* Update app/scripts/lib/setupSentry.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Update app/scripts/lib/setupSentry.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Update app/scripts/lib/setupSentry.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Fix syntax of doc comments
* Catch errors caused by invalid urls in sanitizeUrlsFromErrorMessages
* Ensure our allowlist matches multiple subdomains
* Ensure sanitizeUrlsFromErrorMessages correctly matches hostnames
* Update app/scripts/lib/setupSentry.js
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Improve test descriptions
* fix
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2022-12-19 10:56:58 +01:00
legobeat
204f39ef12
ui: make settings search regex range explicit ( #16903 )
...
* ui: make settings search regex range explicit
- Addresses CodeQL advisory #31
- Removes `][^ as valid characters
* ui: settings-search: ignore leading/trailing whitespace
2022-12-17 05:28:13 +09:00
Mark Stacey
3e98758719
Rename the network controller module ( #16974 )
...
The network controller module has been renamed from `network.js` to
`network-controller.js`. All of our newer controllers have "controller"
in the module names, so this aligns better with that convention. It
also brings the test module name into alignment (it's already called
"network-controller.test.js").
2022-12-16 16:37:06 -03:30
Dan J Miller
ebcccdfc5e
Merge pull request #16980 from MetaMask/master-sync
...
Master sync v10.23.1
2022-12-16 16:30:31 -03:30
Dan J Miller
074c2934fe
remove warning on revoke approval for all nfts ( #16953 )
...
Co-authored-by: EresDev <eresdev@hotmail.com>
2022-12-16 22:37:18 +05:30
Mark Stacey
dbe77289d3
Make initializeProvider
and lookupNetwork
async ( #16881 )
...
* Make `initializeProvider` and `lookupNetwork` async
These two methods were "synchronous" previously, but initiated an
asynchronous operation. They have both been made `async` to bring them
more in-line with the mobile controller API, and to make them easier
to test.
This should include zero functional changes. These methods are still
being invoked without an `await`, to preserve the same behaviour they
had previously.
This relates to https://github.com/MetaMask/controllers/issues/971
* Move 'net_version' query to private function
* Fix error made when resolving conflicts
* Refactor to improve readability
2022-12-16 13:03:22 -03:30