aboutsummaryrefslogtreecommitdiffstats
path: root/responsive-ui/lib/lost-accounts-notice.js
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-07-21 05:05:12 +0800
committerGitHub <noreply@github.com>2017-07-21 05:05:12 +0800
commit6553c9c64b82a9a26a973f05b5fe7f29a6371828 (patch)
tree8f2433bb8dd30e5eaba1fdec7271744323dea46d /responsive-ui/lib/lost-accounts-notice.js
parent199587383b022a17d56adcb56d6a99ceba71fec7 (diff)
parent38dccab12e4140bb085f3ea17e642e55f54d68a1 (diff)
downloadtangerine-wallet-browser-6553c9c64b82a9a26a973f05b5fe7f29a6371828.tar.gz
tangerine-wallet-browser-6553c9c64b82a9a26a973f05b5fe7f29a6371828.tar.zst
tangerine-wallet-browser-6553c9c64b82a9a26a973f05b5fe7f29a6371828.zip
Merge pull request #1802 from MetaMask/RestructureNewUI
Restructure new ui branch folders
Diffstat (limited to 'responsive-ui/lib/lost-accounts-notice.js')
-rw-r--r--responsive-ui/lib/lost-accounts-notice.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/responsive-ui/lib/lost-accounts-notice.js b/responsive-ui/lib/lost-accounts-notice.js
new file mode 100644
index 000000000..948b13db6
--- /dev/null
+++ b/responsive-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
+ `,
+ }
+}