parent
2b1f2557c7
commit
ec6c3c33bd
@ -0,0 +1,41 @@ |
||||
const version = 20 |
||||
|
||||
/* |
||||
|
||||
This migration ensures previous installations |
||||
get a `firstTimeInfo` key on the metamask state, |
||||
so that we can version notices in the future. |
||||
|
||||
*/ |
||||
|
||||
const clone = require('clone') |
||||
|
||||
module.exports = { |
||||
version, |
||||
|
||||
migrate: function (originalVersionedData) { |
||||
const versionedData = clone(originalVersionedData) |
||||
versionedData.meta.version = version |
||||
try { |
||||
const state = versionedData.data |
||||
const newState = transformState(state) |
||||
versionedData.data = newState |
||||
} catch (err) { |
||||
console.warn(`MetaMask Migration #${version}` + err.stack) |
||||
} |
||||
return Promise.resolve(versionedData) |
||||
}, |
||||
} |
||||
|
||||
function transformState (state) { |
||||
const newState = state |
||||
if ('metamask' in newState && |
||||
!('firstTimeInfo' in newState.metamask)) { |
||||
newState.metamask.firstTimeInfo = { |
||||
version: '3.12.0', |
||||
date: Date.now(), |
||||
} |
||||
} |
||||
return newState |
||||
} |
||||
|
@ -0,0 +1,11 @@ |
||||
Please take a moment to [back up your seed phrase again](https://support.metamask.io/kb/article/28-abbu-always-be-backed-up-how-to-make-sure-your-12-word-metamask-seed-phrase-is-backed-up). |
||||
|
||||
MetaMask has become aware of a previous issue where a very small number of users were shown the wrong seed phrase to back up. The only way to protect yourself from this issue, is to back up your seed phrase again now. |
||||
|
||||
You can follow the guide at this link: |
||||
|
||||
[https://support.metamask.io/kb/article/28-abbu-always-be-backed-up-how-to-make-sure-your-12-word-metamask-seed-phrase-is-backed-up](https://support.metamask.io/kb/article/28-abbu-always-be-backed-up-how-to-make-sure-your-12-word-metamask-seed-phrase-is-backed-up) |
||||
|
||||
We have fixed the known issue, but will be issuing ongoing bug bounties to help prevent this kind of problem in the future. |
||||
|
||||
For more information on this issue, [see this blog post](https://medium.com/metamask/seed-phrase-issue-bounty-awarded-e1986e811021) |
@ -1 +1 @@ |
||||
3 |
||||
4 |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue