Connect to actions.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 026e0e3383
commit 17a7436602
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 1
      ui/app/actions.js
  2. 1
      ui/app/config.js

@ -628,6 +628,7 @@ function markAccountsFound() {
function setRpcTarget (newRpc) { function setRpcTarget (newRpc) {
if (global.METAMASK_DEBUG) console.log(`background.setRpcTarget`) if (global.METAMASK_DEBUG) console.log(`background.setRpcTarget`)
background.setRpcTarget(newRpc) background.setRpcTarget(newRpc)
background.addToFrequentRpcList(newRpc)
return { return {
type: actions.SET_RPC_TARGET, type: actions.SET_RPC_TARGET,
value: newRpc, value: newRpc,

@ -5,6 +5,7 @@ const connect = require('react-redux').connect
const actions = require('./actions') const actions = require('./actions')
const currencies = require('./conversion.json').rows const currencies = require('./conversion.json').rows
const validUrl = require('valid-url') const validUrl = require('valid-url')
module.exports = connect(mapStateToProps)(ConfigScreen) module.exports = connect(mapStateToProps)(ConfigScreen)
function mapStateToProps (state) { function mapStateToProps (state) {

Loading…
Cancel
Save