remove getContactCode

This commit is contained in:
Barry Gitarts 2018-10-09 09:58:43 -04:00 committed by Barry G
parent 6b2e751ba8
commit 2273f58576
1 changed files with 1 additions and 3 deletions

View File

@ -7,8 +7,6 @@ import { actions as accountActions } from '../reducers/accounts'
import { isNil } from 'lodash'
const { receiveAccounts, receiveStatusContactCode } = accountActions
const CONTACT_CODE = 'CONTACT_CODE'
const getContactCode = event => event.detail.data[CONTACT_CODE]
export const fetchAndDispatchAccountsWithBalances = (web3, dispatch) => {
web3.eth.getAccounts((err, addresses) => {
@ -29,7 +27,7 @@ export const checkAndDispatchStatusContactCode = dispatch => {
window.web3.currentProvider.status
.getContactCode()
.then(data => {
dispatch(receiveStatusContactCode(getContactCode(data)));
dispatch(receiveStatusContactCode(data));
})
.catch(err => {
console.log('Error:', err);