mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
088d4c34f1
* Remove network config store * Remove inline networks variable in network controller * Re-key network controller 'rpcTarget' to 'rpcUrl' * Require chainId in lookupNetwork, implement eth_chainId * Require chain ID in network form * Add alert, migrations, and tests * Add chainId validation to addToFrequentRpcList * Update public config state selector to match new network controller state * Use network enums in networks-tab.constants * Ensure chainId in provider config is current * Update tests
22 lines
384 B
JavaScript
22 lines
384 B
JavaScript
|
|
/**
|
|
* @typedef {Object} FirstTimeState
|
|
* @property {Object} config Initial configuration parameters
|
|
* @property {Object} NetworkController Network controller state
|
|
*/
|
|
|
|
/**
|
|
* @type {FirstTimeState}
|
|
*/
|
|
const initialState = {
|
|
config: {},
|
|
NetworkController: {
|
|
provider: {
|
|
type: 'rpc',
|
|
rpcUrl: 'http://localhost:8545',
|
|
},
|
|
},
|
|
}
|
|
|
|
export default initialState
|