mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Corrected migration order
This commit is contained in:
parent
875a0731dd
commit
4a1dd26fc9
@ -1,13 +1,11 @@
|
|||||||
var oldTestRpc = 'https://rawtestrpc.metamask.io/'
|
|
||||||
var newTestRpc = 'https://testrpc.metamask.io/'
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
version: 3,
|
version: 2,
|
||||||
|
|
||||||
migrate: function(data) {
|
migrate: function(data) {
|
||||||
try {
|
try {
|
||||||
if (data.config.provider.rpcTarget === oldTestRpc) {
|
if (data.config.provider.type === 'etherscan') {
|
||||||
data.config.provider.rpcTarget = newTestRpc
|
data.config.provider.type = 'rpc'
|
||||||
|
data.config.provider.rpcTarget = 'https://rpc.metamask.io/'
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
return data
|
return data
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
|
var oldTestRpc = 'https://rawtestrpc.metamask.io/'
|
||||||
|
var newTestRpc = 'https://testrpc.metamask.io/'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
version: 2,
|
version: 3,
|
||||||
|
|
||||||
migrate: function(data) {
|
migrate: function(data) {
|
||||||
try {
|
try {
|
||||||
if (data.config.provider.type === 'etherscan') {
|
if (data.config.provider.rpcTarget === oldTestRpc) {
|
||||||
data.config.provider.type = 'rpc'
|
data.config.provider.rpcTarget = newTestRpc
|
||||||
data.config.provider.rpcTarget = 'https://rpc.metamask.io/'
|
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
return data
|
return data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user