14 lines
430 B
JavaScript
Raw Normal View History

2018-06-01 12:45:11 -04:00
import web3 from "Embark/web3"
import EmbarkJS from 'Embark/EmbarkJS'
import store from './configureStore'
import { fetchAndDispatchSNTAllowance, fetchAndDispatchAccountsWithBalances } from '../actions/accounts'
2018-06-01 12:45:11 -04:00
const dispatch = action => store.dispatch(action)
export default () => {
2018-09-28 15:12:52 -04:00
EmbarkJS.onReady(async (err) => {
2018-06-01 12:45:11 -04:00
fetchAndDispatchAccountsWithBalances(web3, dispatch)
2018-08-14 10:10:31 -04:00
fetchAndDispatchSNTAllowance(dispatch)
2018-06-01 12:45:11 -04:00
})
}