diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-07-04 07:09:17 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-07-04 07:16:53 +0800 |
commit | e285f2cae958437160f86171f1fccfec66799883 (patch) | |
tree | 49cf0e2d1805d0c36d53ae6920d63f614da1e9ad /ui/responsive/lib/lost-accounts-notice.js | |
parent | 5eb3d5d485b17b98b19443d8def2f03dec9b38ef (diff) | |
download | tangerine-wallet-browser-e285f2cae958437160f86171f1fccfec66799883.tar.gz tangerine-wallet-browser-e285f2cae958437160f86171f1fccfec66799883.tar.zst tangerine-wallet-browser-e285f2cae958437160f86171f1fccfec66799883.zip |
Get duplicate UI template working
Diffstat (limited to 'ui/responsive/lib/lost-accounts-notice.js')
-rw-r--r-- | ui/responsive/lib/lost-accounts-notice.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/responsive/lib/lost-accounts-notice.js b/ui/responsive/lib/lost-accounts-notice.js new file mode 100644 index 000000000..948b13db6 --- /dev/null +++ b/ui/responsive/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 + `, + } +} |