1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 04:20:53 +01:00
Commit Graph

13346 Commits

Author SHA1 Message Date
Dan J Miller
91f0ec1bab
Merge pull request #12732 from MetaMask/Version-v10.7.0
Version v10.7.0 RC
2021-12-01 04:38:30 -03:30
Thomas Huang
1a81ae8b19 Update Changelog 2021-11-30 22:36:44 -06:00
Dan J Miller
b025baf093 Adds multilayer fee display to erc20 token approval screen (#12824)
* Adds multilayer fee display to erc20 token approval screen

* Change bold property name
2021-11-30 11:51:23 -03:30
Dan J Miller
9aa8abb55f Remove _removeBeforeUnload calls in confirm-encryption-public-key.component.js and confirm-decrypt-message.component.js (#12825) 2021-11-29 19:33:54 -03:30
Dan J Miller
7400b16cf2 Use node-browsers-medium-plus executor for validate-lavamoat-config job (#12884) 2021-11-29 17:35:31 -03:30
Mark Stacey
19a8b58aa1 Fix environment variables used during test builds (#12855)
The environment variables used for test builds was wrong for certain
bundles because the `testing` flag wasn't passed through to the
function that determines which environment variables to inject.
Effectively this means that test builds on `master` were going to the
production `metamask` Sentry project rather than the `test-metamask`
project. This has been the case since #11080.

The `testing` flag is now included for all bundles, and test builds now
use the `test-metamask` Sentry project in all cases.
2021-11-26 17:33:03 -03:30
Mark Stacey
9fd42f1bc2 Fix LavaMoat background policy generation (#12844)
The LavaMoat policy generation script would sporadically fail because
it ran the build concurrently three times, and the build includes
steps that delete the `dist` directory and write to it. So if one build
process tried to write to the directory after another deleted it, it
would fail.

This was solved by adding a new `--policy-only` flag to the build
script, and a new `scripts:prod` task. The `scripts:prod` task only
runs the script tasks for prod, rather than the entire build process.
The `--policy-only` flag stops the script tasks once the policy has
been written, and stops any other files from being written to disk.

This prevents the three concurrent build processes from getting in each
others way, and it dramatically speeds up the process.
2021-11-26 17:14:24 -03:30
Dan Miller
a6829f787c Changelog lint fix 2021-11-26 15:30:20 -03:30
Dan Miller
0631403c46 Merge remote-tracking branch 'origin/master' into Version-v10.7.0-updated 2021-11-26 15:15:41 -03:30
kumavis
1cd7e2b218 deps - bump @lavamoat/lavapack for bug fix (#12751) 2021-11-25 20:36:46 -03:30
Dan J Miller
0bff79254e
Merge pull request #12852 from MetaMask/Version-v10.6.4
Version v10.6.4 RC
2021-11-25 10:44:21 -03:30
Dan Miller
3210340a97 Update changelog for v10.6.4 2021-11-25 09:42:08 -03:30
Thomas Huang
b6470bfab9 Ignore sentry server errors in e2e tests (#12843)
* Ignore sentry server errors in e2e tests

* Update test/e2e/webdriver/driver.js

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

Co-authored-by: Dan J Miller <danjm.com@gmail.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-11-25 09:38:39 -03:30
Mingliang Liu
e0d497031d update scams and network security risks link (#12752) 2021-11-25 09:38:39 -03:30
MetaMask Bot
fd86ae9ff3 Version v10.6.4 2021-11-25 12:34:07 +00:00
Dan J Miller
036edda11d
Merge pull request #12830 from MetaMask/Version-v10.6.3
Version v10.6.3 RC
2021-11-24 18:00:44 -03:30
Dan J Miller
21a7b961d7 Ensure that handleChange in token-input.component handles empty values (#12835) 2021-11-24 16:40:53 -03:30
Dan Miller
53d12135ad Update changelog 2021-11-24 15:03:42 -03:30
Thomas Huang
90017d28a8 Convert token input to BigNumber to handle decimals. (#12773)
* Fixes #12762

Adds a decimal length check for inputs and drops excess fractional part.
Another edgecase not accounted for is when a token's decimal precision is 0 and attempting sending decimals will result in omitting the fractional part.

* Change spies from sinon to jest and change onChange value to string.

* Adjust

* Remove sinon

* Add test for issue case

* DRY

* Simplify logic by using BigNumber

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-11-24 15:01:57 -03:30
Olusegun Akintayo
bed7c787e9 We shouldn't be changing decimal places as user type, we should do that on blur. (#12631)
* We shouldn't be changing decimal places as user type, we should do that
on blur.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Refactor code.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Linter fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-11-24 15:01:57 -03:30
Dan Miller
c06935b8b8 Update changelog for v10.6.3 2021-11-24 14:25:04 -03:30
Dan J Miller
28cf6ec2ab Bump @metmamask/logo to v3.1.1 (#12822) 2021-11-24 14:22:17 -03:30
Daniel
61e0526d58 Fix "BigNumber Error: times() number type has more than 15 significant digits:" (#12802) 2021-11-24 14:22:17 -03:30
MetaMask Bot
baf049afb8 Version v10.6.3 2021-11-24 17:44:02 +00:00
ryanml
c3d8eb822b Updating changelog 2021-11-22 16:37:48 -07:00
ryanml
4d94261deb Merge remote-tracking branch 'origin/master' into Version-v10.7.0 2021-11-22 16:35:08 -07:00
Dan J Miller
7c98b33e0b
Merge pull request #12785 from MetaMask/Version-v10.6.2
Version v10.6.2 RC
2021-11-22 19:45:42 -03:30
Dan J Miller
6d808e0977 Remove localhost from default network list (#12790)
* Remove localhost from default network list

* Update e2e fixtures
2021-11-22 19:04:32 -03:30
Dan Miller
0cceee0477 Update changelog 2021-11-22 13:19:54 -03:30
Dan J Miller
f15825d0c4 Ensure one and only one localhost option appears in network list (#12786)
* Ensure one and only one localhost option appears in network list

* Fix unit tests
2021-11-22 13:16:35 -03:30
Dan J Miller
08104cdc75 Add fixed json-schema to resolutions file to resolve security issue (#12787) 2021-11-22 13:16:35 -03:30
Alex Donesky
e93b3b97d6 fix issue where contractExchangeRates are not available in swaps controller, make token address matching case insensitive (#12770) 2021-11-22 13:16:35 -03:30
MetaMask Bot
56021eb133 Version v10.6.2 2021-11-22 12:28:36 +00:00
ryanml
f3ade11c74
Merge pull request #12769 from MetaMask/Version-v10.6.1
Version v10.6.1 RC
2021-11-19 15:43:15 -07:00
ryanml
eb7d96e988 Updating changelog 2021-11-19 11:05:50 -07:00
MetaMask Bot
32c3d8b6fd Version v10.6.1 2021-11-19 17:58:37 +00:00
Dan J Miller
a533dcc403 Ensure that metametrics error related to anonymousId is not sent to sentry (#12763) 2021-11-19 10:53:50 -07:00
Mark Stacey
baef54bd31 Update improved-yarn-audit and ignore 2 advisories (#12765)
`improved-yarn-audit` has been updated so that it supports GitHub
advisories. Two new GitHub advisories have been ignored, as they are
both moderate RegExp DoS vulnerabilities that don't affect us, and they
are embedded deep within our dependency graph and are difficult to
update.
2021-11-19 10:53:36 -07:00
ryanml
042c19e0cb Don't dispatch hideTestNetMessage (#12748) 2021-11-19 10:53:21 -07:00
kumavis
db7fc50216 metametrics - ensure segment submission failures do not bubble up (#12573)
* metametrics - ensure segment submission failures do not bubble up

* metametrics - differentiate between trackEvent and submitEvent

* metametrics - validate event in trackEvent

* metametrics - re-throw error on clean stack

* lint fix

* controllers/metametrics - take a captureException option

* controllers/metametrics - capture and report any errors in trackPage

* Update app/scripts/controllers/metametrics.js

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

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2021-11-19 10:53:08 -07:00
ryanml
350e489221
[skip e2e] Updating changelog for v10.7.0 (#12736) 2021-11-17 18:09:27 -07:00
MetaMask Bot
cb5aaf8e16 Version v10.7.0 2021-11-17 18:17:25 +00:00
Daniel
ecceb4d6da
Use v2 API for fiat onboarding URL creation, fix wrapping / unwrapping (#12729)
* Use a Swaps v2 API to get a fiat onboarding URL

* Fix an issue with wrapping / unwrapping if an address contained uppercase chars

* Rename a constant

* Use a constant in a test
2021-11-17 18:04:50 +01:00
ryanml
dcffd5fbf8
Make ToggleButton keyboard accessible (#12727) 2021-11-17 08:38:20 -07:00
ryanml
889411a0d7
Merge pull request #12724 from MetaMask/master-sync
Sync `master` with `develop`
2021-11-16 17:03:47 -07:00
ryanml
d3d01f6e23 Fix yarn.lock 2021-11-16 16:27:56 -07:00
ryanml
5a8ca9d16e Merge remote-tracking branch 'origin/develop' into master-sync 2021-11-16 16:26:19 -07:00
ryanml
079837c4a7
Merge pull request #12629 from MetaMask/Version-v10.6.0
Version v10.6.0 RC
2021-11-16 16:17:23 -07:00
Dan J Miller
e74a54ccbc Ensure the test network dismissal message in the network dropdown is permanently dismissed (#12723) 2021-11-16 15:23:04 -07:00
Dan J Miller
ab8db945cd
Ensure the test network dismissal message in the network dropdown is permanently dismissed (#12723) 2021-11-16 18:52:01 -03:30