13 lines
367 B
JavaScript
13 lines
367 B
JavaScript
|
import web3 from "Embark/web3"
|
||
|
import EmbarkJS from 'Embark/EmbarkJS'
|
||
|
import store from './configureStore'
|
||
|
import { fetchAndDispatchAccountsWithBalances } from '../actions/accounts'
|
||
|
|
||
|
const dispatch = action => store.dispatch(action)
|
||
|
|
||
|
export default () => {
|
||
|
__embarkContext.execWhenReady(async () => {
|
||
|
fetchAndDispatchAccountsWithBalances(web3, dispatch)
|
||
|
})
|
||
|
}
|