A reactive data-store for web3 and smart contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
361 B

import * as AccountBalancesActions from './constants'
const initialState = {}
const accountBalancesReducer = (state = initialState, action) => {
if (action.type === AccountBalancesActions.ACCOUNT_BALANCE_FETCHED) {
return {
...state,
[action.account]: action.accountBalance
}
}
return state
}
export default accountBalancesReducer