diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-12-21 05:53:14 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-12-21 07:24:08 +0800 |
commit | 931ae5f64a233b472c3dada8aa6af77e0bffad5e (patch) | |
tree | c5223496a95e474d90df1565a858f3715240c274 /ui/lib | |
parent | 674b2689826c770092a3dfee7fe76fb83c0b444a (diff) | |
download | tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar.gz tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar.bz2 tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar.lz tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar.xz tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.tar.zst tangerine-wallet-browser-931ae5f64a233b472c3dada8aa6af77e0bffad5e.zip |
Make notices confirmation configurable
- Confirm button will now dismiss the lost accounts array.
Diffstat (limited to 'ui/lib')
-rw-r--r-- | ui/lib/lost-accounts-notice.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/lib/lost-accounts-notice.js b/ui/lib/lost-accounts-notice.js new file mode 100644 index 000000000..49b055778 --- /dev/null +++ b/ui/lib/lost-accounts-notice.js @@ -0,0 +1,23 @@ +const summary = require('../app/util').addressSummary + +module.exports = function (lostAccounts) { + return { + date: new Date().toDateString(), + title: 'Account Problem Caught', + body: `MetaMask has fixed a bug where some accounts were previously mis-generated. This was a rare issue, but you were affected! + +We have successfully imported the accounts that were mis-generated, but they will no longer be recovered with your normal seed phrase. + +We have marked the affected accounts as "Loose", and recommend you transfer ether and tokens away from those accounts, or export & back them up elsewhere. + +Your affected accounts are: +${lostAccounts.map(acct => ` - ${summary(acct)}`).join('\n')} + +These accounts have been marked as "Loose" so they will be easy to recognize in the account list. + +For more information, please read [our blog post.][1] + +[1]: https://medium.com/metamask/metamask-3-migration-guide-914b79533cdd#.7d8ktj4h3 + ` + } +} |