aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r--app/scripts/lib/config-manager.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 121ede838..425dee3ac 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -2,7 +2,9 @@ const Migrator = require('pojo-migrator')
const extend = require('xtend')
const STORAGE_KEY = 'metamask-config'
-var DEFAULT_RPC = 'https://rawtestrpc.metamask.io/'
+const DEFAULT_RPC = 'https://rawtestrpc.metamask.io/'
+
+const migrations = require('./migrations')
/* The config-manager is a convenience object
* wrapping a pojo-migrator.
@@ -28,7 +30,7 @@ function ConfigManager() {
//
// The `migrate` function receives the previous
// config data format, and returns the new one.
- migrations: [],
+ migrations: migrations,
// How to load initial config.
// Includes step on migrating pre-pojo-migrator data.
@@ -134,7 +136,9 @@ function loadData() {
} catch (e) {}
var data = extend({
- version: 0,
+ meta: {
+ version: 0,
+ },
data: {
config: {
rpcTarget: DEFAULT_RPC,