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

9755 Commits

Author SHA1 Message Date
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
Whymarrh Whitby
d605fa57ce Use localized messages for NotificationModal buttons (#7558) 2019-12-05 16:27:08 -04:00
Mark Stacey
cb472edfe4 Fix a typo made comparing previous prop (#7628)
The prop `prevIsAccountMenuOpen` was referenced in `prevProps`, despite
it not existing. It seems clear from the context that the intention
was to check the `isAccountMenuOpen` prop from `prevProps`, and name
the local variable `prevIsAccountMenuOpen`.
2019-12-05 16:27:08 -04:00
Xavier Maysonnave
f72070ae0d Process URL fragment for ens-ipfs redirects (#7604)
Also use app.ens.domains instead of manager.ens.domains
2019-12-05 16:27:08 -04:00
Mark Stacey
77449923c3 Prevent redux state mutation (#7598)
The `txParams` property of a transaction in Redux state was being
mutated. The mutation is now prevented with a shallow clone.
2019-12-05 16:27:08 -04:00
Dan J Miller
ff6b254a9b Ensures the tx controller + state-manager orders transactions as received (#7484)
* Ensures the tx controller + tx-state-manager orders transactions in the order they are received

* Handle transaction ordering in cases where tx ids are off by more than 1 in tx-state-manager

* Add comment to addUnapprovedTransaction explaining calling _determineTransactionCategory after generateTxMeta

* Sort txes by timestamp of creation instead of id
2019-12-05 16:27:08 -04:00
Whymarrh Whitby
ddcf8f9de7 Construct AppStateController with the persisted initial state 2019-12-05 16:27:08 -04:00
Whymarrh Whitby
9e6d401c2f Don't overwrite state when setting inactive timeout
Using `#putState` here was clearing the other fields in the store.
2019-12-05 16:27:08 -04:00
Whymarrh Whitby
c6259f6eb5 Fix accessibility of first-time-flow terms checkboxes (#7501) 2019-12-05 16:27:08 -04:00
ryanml
e673bfb25c Fixing hardware connect error display (#7519) 2019-12-05 16:27:08 -04:00
Bruno Barbieri
5798a9e5f1 Fix chainId for non standard networks (#7502) 2019-12-05 16:27:08 -04:00
Whymarrh Whitby
4190b397d1 Remove unused onClick prop from Dropdown component (#7500) 2019-12-05 16:27:08 -04:00
Thomas
767f8ec52f Finish test description 2019-12-05 16:27:08 -04:00
Thomas
42813508bc Update Gas when asset is changed 2019-12-05 16:27:08 -04:00