diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/migrations.js | 2 | ||||
-rw-r--r-- | app/scripts/migrations/003.js | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/app/scripts/lib/migrations.js b/app/scripts/lib/migrations.js index cab5bec66..0b8e6265c 100644 --- a/app/scripts/lib/migrations.js +++ b/app/scripts/lib/migrations.js @@ -2,7 +2,9 @@ var path = require('path') var fs = require('fs') var migration2 = require('../migrations/002') +var migration3 = require('../migrations/003') module.exports = [ migration2, + migration3, ] diff --git a/app/scripts/migrations/003.js b/app/scripts/migrations/003.js new file mode 100644 index 000000000..087f8bcd9 --- /dev/null +++ b/app/scripts/migrations/003.js @@ -0,0 +1,15 @@ +var oldTestRpc = 'https://rawtestrpc.metamask.io/' +var newTestRpc = 'https://testrpc.metamask.io/' + +module.exports = { + version: 3, + + migrate: function(data) { + try { + if (data.config.provider.rpcTarget === oldTestRpc) { + data.config.provider.rpcTarget = newTestRpc + } + } catch (e) {} + return data + } +} |