|
|
@ -5,6 +5,7 @@ const normalize = require('eth-sig-util').normalize |
|
|
|
const TESTNET_RPC = MetamaskConfig.network.testnet |
|
|
|
const TESTNET_RPC = MetamaskConfig.network.testnet |
|
|
|
const MAINNET_RPC = MetamaskConfig.network.mainnet |
|
|
|
const MAINNET_RPC = MetamaskConfig.network.mainnet |
|
|
|
const MORDEN_RPC = MetamaskConfig.network.morden |
|
|
|
const MORDEN_RPC = MetamaskConfig.network.morden |
|
|
|
|
|
|
|
const KOVAN_RPC = MetamaskConfig.network.kovan |
|
|
|
|
|
|
|
|
|
|
|
/* The config-manager is a convenience object |
|
|
|
/* The config-manager is a convenience object |
|
|
|
* wrapping a pojo-migrator. |
|
|
|
* wrapping a pojo-migrator. |
|
|
@ -150,6 +151,9 @@ ConfigManager.prototype.getCurrentRpcAddress = function () { |
|
|
|
case 'morden': |
|
|
|
case 'morden': |
|
|
|
return MORDEN_RPC |
|
|
|
return MORDEN_RPC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'kovan': |
|
|
|
|
|
|
|
return KOVAN_RPC |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC |
|
|
|
return provider && provider.rpcTarget ? provider.rpcTarget : TESTNET_RPC |
|
|
|
} |
|
|
|
} |
|
|
|