diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-09-06 02:49:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 02:49:48 +0800 |
commit | 32c799a1359a0d558fec257c5e1bbd0e31d086f6 (patch) | |
tree | ca953d2c7201a286a408ff5260a79a7f0c004120 | |
parent | ba2d1f8d3ebcede778cbc2a66aead0df8e825ea0 (diff) | |
parent | 90272e252fa265037ecdfb3f618aa1a8e16ee4fb (diff) | |
download | tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar.gz tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar.bz2 tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar.lz tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar.xz tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.tar.zst tangerine-wallet-browser-32c799a1359a0d558fec257c5e1bbd0e31d086f6.zip |
Merge pull request #2019 from MetaMask/i2016-ImproveSignDeprecationWarning
Make eth_sign deprecation warning more useful
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | ui/app/components/pending-msg.js | 15 |
2 files changed, 14 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d9cb02a24..aa9e1ab6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Current Master - Make eth_sign deprecation warning less noisy +- Add useful link to eth_sign deprecation warning. - Fix bug with network version serialization over synchronous RPC - Add MetaMask version to state logs. - Add the total amount of tokens when multiple tokens are added under the token list diff --git a/ui/app/components/pending-msg.js b/ui/app/components/pending-msg.js index b7133cda8..834719c53 100644 --- a/ui/app/components/pending-msg.js +++ b/ui/app/components/pending-msg.js @@ -35,10 +35,21 @@ PendingMsg.prototype.render = function () { style: { margin: '10px', }, - }, `Signing this message can have + }, [ + `Signing this message can have dangerous side effects. Only sign messages from sites you fully trust with your entire account. - This dangerous method will be removed in a future version.`), + This dangerous method will be removed in a future version. `, + h('a', { + href: 'https://medium.com/metamask/the-new-secure-way-to-sign-data-in-your-browser-6af9dd2a1527', + style: { color: 'rgb(247, 134, 28)' }, + onClick: (event) => { + event.preventDefault() + const url = 'https://medium.com/metamask/the-new-secure-way-to-sign-data-in-your-browser-6af9dd2a1527' + global.platform.openWindow({ url }) + }, + }, 'Read more here.'), + ]), // message details h(PendingTxDetails, state), |