1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
Commit Graph

9768 Commits

Author SHA1 Message Date
Mark Stacey
2d36d422ee
Backport "Updating deprecated Etherscam link (#7464)" (#8463)
Backport #7464 to v7.7.9

Co-authored-by: Alice Henshaw <34962750+alicevhenshaw@users.noreply.github.com>
Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-04-29 18:40:34 -03:00
Mark Stacey
aab262a3d1
Backport "Use ethereum-ens-network-map for network support (#7960)" (#8465)
Backport #7960 to v7.7.9

Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-04-29 18:40:20 -03:00
Mark Stacey
8a8c774e6d
Backport "Fix Kovan and Rinkeby chain IDs (#7762)" (#8462)
Backport #7762 to v7.7.9

Co-authored-by: Sirius Tsou <sirius.tsou@gmail.com>
2020-04-29 18:35:59 -03:00
Mark Stacey
02329541e5
Backport "Add INR currency option (#7673)" (#8457)
Backport #7673 to v7.7.9.

Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-04-29 18:35:08 -03:00
Mark Stacey
4d9d732fe2
Backport "fix destructuring of lastSelectedProvider (#8197)" (#8461)
Backport #8197 to v7.7.9.

Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2020-04-29 18:34:31 -03:00
Mark Stacey
361c57191d
Backport "Fixes #5706 - Adds Dai/Sai to currency display (#7986)" (#8455)
Backport #7986 onto v7.7.9. The original commit message follows:

With the change from infura to cryptocompare https://github.com/MetaMask/gaba/pull/30/files#diff-50c3c47cc5fa12e5213a6cc900476f41L41-R48 we have numerous conversion rates to go through and add if we like to.

Co-authored-by: Thomas Huang <tmashuang@users.noreply.github.com>
2020-04-29 17:44:27 -03:00
Mark Stacey
3dc8387a96
Backport "Fix method registry initialization (#8200)" (#8459)
Backport #8200 to v7.7.9. Original commit description:

The method registry was being initialized with the global variable
`ethereumProvider` before that variable was set. As a result, the
method registry was falling back to an internally constructed provider
that used the wrong provider URL (an obsolete Infura API). This was
resulting in an error with the message "Project ID not found".

The method registry is now initialized lazily, when it's first needed.
This should be well after the initialization of `ethereumProvider`,
which occurs during the UI initialization.
2020-04-29 17:02:16 -03:00
Mark Stacey
f91bd3a08d
Backport "Snapshot txMeta without cloning history (#8363)" (#8458)
Backport #8363 to v7.7.9. Note that this uses `clone` instead of
`cloneDeep`, because `clone` hadn't yet been replaced by `cloneDeep` on
`master`.

Backporting that change as well would have been very disruptive, so
I've updated this to use `clone` instead to minimize conflicts. It is
functionally equivalent.

Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-04-29 16:17:52 -03:00
Mark Stacey
50b48b7a03
Backport "Clean up list of available currencies (#7667)" (#8454)
This is backported to make it easier to backport #7986

Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-04-29 15:37:26 -03:00
Mark Stacey
08fd6cf329
Backport "Update deposit copy for Wyre (#7654)" (#8460)
Backport #7654 to v7.7.9

Co-authored-by: Tyson Malchow <tyson.malchow@gmail.com>
2020-04-29 15:17:29 -03:00
Mark Stacey
57fdc03dc2
Backport "Delete Dai/Sai migration notification (#8418)" (#8447)
This backports the deletion of the Dai/Sai migration notification
(#8418). Note that the migration to delete the now unused background
state has not been included, as it is non-essential and would have been
more difficult to backport. The migration to delete the unused state
will be included in the next major release instead.
2020-04-29 11:40:08 -03:00
Mark Stacey
8fb615c9f6
Backport "Skip adding history entry for empty txMeta diffs (#8379)" (#8449)
Backport #8379 to v7.7.9
2020-04-29 02:31:45 -03:00
Mark Stacey
2a513990c2
Backport "Fix popup not opening (#8314)" (#8446)
This is a backport of #8314. Here's the original description:

MetaMask would sometimes get into a state where the notification popup
would never open. This could happen if the notification window was
closed shortly after being opened. After this happened, no popups would
show up until after the extension was reset.

This was happening because the background thought the popup was already
open. The variable it uses to track whether the popup was open or not
was being set to `true` immediately after the background asked the
browser to open a new window, before a handler was attached that could
respond to the window being closed.

Removing this line seems to solve the problem.

This line was added originally in #5437, which dealt with batch
transactions. Batches of transactions seem to work just fine without
this line though (from local testing), and I can't think of why this
would be required.

Closes #7051
2020-04-29 01:57:25 -03:00
MetaMask Bot
a7911ce9b3 Version v7.7.9 2020-04-28 15:40:28 +00:00
MetaMask Bot
a7bcc17f9b
Merge pull request #8186 from MetaMask/Version-v7.7.8
Version v7.7.8 RC
2020-03-13 13:06:18 -07:00
Dan Finlay
0b54b99087
Version v7.7.7 RC (#8161)
* Version v7.7.7

* Update `@metamask/eth-ledger-bridge-keyring` (#8162)

* Update `@metamask/eth-ledger-bridge-keyring`

The Ledger keyring has been updated to ensure that any stale BIP44
accounts created prior to v7.7.6 of the extension are discarded when
the extension starts. Any attempts to sign with these accounts would
have failed; they needed to be re-added regardless.

* Update changelog

* Fix Ledger account index check for account zero (#8163)

Update Ledger keyring to fix bug when trying to sign with account 0

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-03-04 14:42:33 -08:00
MetaMask Bot
9f1f85715e
Version v7.7.6 RC (#8153)
* Version v7.7.6

* Use @metamask/eth-ledger-bridge-keyring@0.2.2 (#8154)

* Use @metamask/eth-ledger-bridge-keyring@0.2.2

* Update usages of eth-ledger-bridge-keyring

* Update CHANGELOG.md

Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
2020-03-03 07:17:28 -08:00
Thomas Huang
2285a5077d
Merge pull request #8054 from MetaMask/Version-v7.7.5
Version v7.7.5 RC
2020-02-18 11:19:31 -08:00
Mark Stacey
f78247b51a Update changelog for v7.7.5 2020-02-17 22:18:59 -04:00
Mark Stacey
5b030bfdc3 Attempt ENS resolution on any valid domain name (#8059)
ENS currently supports a variety of tlds in addition to `.eth`, and
more will be supported in the future. Rather than hard-code a list of
supported ENS tlds, all valid domain names will now be interpreted as
potential ENS addresses in our address input component.

Closes #7978
2020-02-17 22:18:59 -04:00
Whymarrh Whitby
5156191ba7 Update dependencies to resolve security advisories (#8064) 2020-02-17 22:18:59 -04:00
Mark Stacey
18c2720c42 Update packages to address security advisory (#8061)
Update packages to address the following security advisories:
* https://www.npmjs.com/advisories/1474
* https://www.npmjs.com/advisories/1475
* https://www.npmjs.com/advisories/1476
* https://www.npmjs.com/advisories/1480
* https://www.npmjs.com/advisories/1482
2020-02-17 21:28:10 -04:00
Mark Stacey
abdc3c5626 Update Wyre ETH purchase url (#8051)
* Revert "Revert "Update Wyre ETH purchase url" (#7631)"

This reverts commit bc67d1eeca.

* Restrict widget to just debit card payments

Apple Pay apparently only works on Safari.
2020-02-14 18:26:04 -04:00
Dan Finlay
bca4594f0a Add warning to watchAsset API when editing a known token (#8049)
* Add warning when editing a known token with watchAsset API

* Add warning when watchAsset attempts to reuse token symbol
2020-02-14 16:44:22 -04:00
Dan Finlay
39d944fd27 Inline the source text not the binary encoding for inpage script (#8053) 2020-02-14 16:39:27 -04:00
MetaMask Bot
0d94fbcf5c Version v7.7.5 2020-02-14 20:31:19 +00:00
Dan Finlay
de3b98c9ee
Merge pull request #7922 from MetaMask/Version-v7.7.4
Version v7.7.4 RC
2020-01-31 11:26:59 -08:00
Whymarrh Whitby
b3fedbcd44 Update ethereum-ens-network-map in lockfile (#7959)
* Update yarn.lock cross-spawn versions
* Use ethereum-ens-network-map@1.0.2
2020-01-30 18:40:52 -04:00
Mark Stacey
7c84b3d30a Update changelog for v7.7.4 2020-01-30 11:46:16 -04:00
Whymarrh Whitby
09c23072f0 Update ENS registry addresses (#7954) 2020-01-30 11:46:16 -04:00
Mark Stacey
257e581d47 Only resolve ENS on mainnet (#7944)
The ENS resolver will now bail on any network other than mainnet.
2020-01-29 20:59:38 -04:00
Mark Stacey
c2499d63aa Validate custom spend limit (#7920)
The custom spend limit was previously not validated. It did have a
minimum of zero set, but this didn't have any affect (that minimum is
used for form constraint validation, and this field wasn't in a form).
The field was never checked to ensure the contents didn't exceed the
maximum.

The field is now checked for values that exceed the maximum, and
invalid values in general (including negative values).

The parameters to the `showEditApprovalPermissionModal` were also
alphabetized to make them easier to read. In the course of doing this,
I noticed that the origin was missing from one of the calls. This was
responsible for the modal saying "Spend limit requested by undefined"
when clicking "Edit" under the transaction details. This has been
fixed.
2020-01-29 14:21:54 -04:00
Mark Stacey
3bd5d714f7 Allow editing max spend limit (#7919)
In the case where the initial spend limit for the `approve` function
was set to the maximum amount, editing this value would result in the
new limit being silently ignored. The transaction would be submitted
with the original max spend limit.

This occurred because function to generate the new custom data would
look for the expected spend limit in the existing data, then bail if
it was not found (and in these cases, it was never found).

The reason the value was not found is that it was erroneously being
converted to a `Number`. A JavaScript `Number` is not precise enough to
represent larger spend limits, so it would give the wrong hex value
(after rounding had taken place in the conversion to a floating-point
number).

The data string is now updated without relying upon the original token
value; the new value is inserted after the `spender` argument instead,
as the remainder of the `data` string is guaranteed to be the original
limit. Additionally, the conversion to a `Number` is now omitted so
that the custom spend limit is encoded correctly.

Fixes #7915
2020-01-29 00:46:44 -04:00
Mark Stacey
acf1f704ea Update data on Approve screen after updating custom spend limit (#7918)
After updating the custom spend limit on the approve screen, the data
for the transaction was not being updated. Instead it showed the
original transaction data. The transaction data was being updated
correctly in the final transaction though.

The approve screen has been updated to ensure changes to the custom
spend limit are reflected correctly in the data shown.
2020-01-29 00:44:58 -04:00
MetaMask Bot
3bce9dec94 Version v7.7.4 2020-01-29 04:42:52 +00:00
Thomas Huang
8fd47329c6
Merge pull request #7895 from MetaMask/Version-v7.7.3
Version v7.7.3 RC
2020-01-27 10:02:48 -08:00
Mark Stacey
1b52cccf07 Update changelog for v7.7.3 2020-01-27 11:28:29 -04:00
MetaMask Bot
8787b161e8 Version v7.7.3 2020-01-27 11:28:29 -04:00
ryanml
7bb8b18999 Fixing broken JSON import help link (#7910) 2020-01-27 11:28:29 -04:00
Whymarrh Whitby
ec3a4a79c6 Use eth-contract-metadata@1.12.1 (#7901) 2020-01-26 12:47:55 -04:00
Whymarrh Whitby
a1e8229a65 Update GABA dependency version (#7894) 2020-01-24 22:10:25 -04:00
Thomas Huang
0dad516b9d
Merge pull request #7803 from MetaMask/Version-v7.7.2
Version v7.7.2 RC
2020-01-13 10:44:16 -08:00
Mark Stacey
ba15cf8f63 Re-arrange transaction navigation test actions
These tests were updated in #7473 to navigate in a different order,
because the transaction order changed. Unfortunately this meant that
a second contract deployment was being confirmed, where it was
previously being rejected.

This updates the test to ensure the same transaction is rejected and
confirmed as prior to the change in #7473
2020-01-13 14:18:51 -04:00
Mark Stacey
05634ab137 Update changelog for v7.7.2 2020-01-13 14:18:51 -04:00
Erik Marks
2ec844e019 Fix batch transaction UX (#7473)
* order transactions from oldest to newest in UI

* update json-rpc-engine, eth-json-rpc-middleware

* update e2e and integration tests
2020-01-10 11:10:35 -04:00
Dan J Miller
7b8e87e32a Fix gas estimate for tokens (#7753)
* Make gas estimate update on debounced token amount change, not just on blur after change

* Updated tests

* Ensure `updateGas` is bound early

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
2020-01-10 11:03:59 -04:00
MetaMask Bot
77b42c4f4b Version v7.7.2 2020-01-10 14:57:42 +00:00
Dan Finlay
70bbb689d0
Merge pull request #7635 from MetaMask/Version-v7.7.1
Version v7.7.1 RC
2019-12-09 10:22:45 -08:00
Mark Stacey
6ce3bd8372 Update changelog for v7.7.1
This includes the changelog for v7.7.0, which is included with the
label `[WITHDRAWN]` to denote that it was rolled back.
2019-12-05 16:27:08 -04:00
MetaMask Bot
28ecc6c349 Version v7.7.1 2019-12-05 16:27:08 -04:00