diff --git a/src/keeper/token.js b/src/keeper/token.js index 7eac890..f2cc08d 100644 --- a/src/keeper/token.js +++ b/src/keeper/token.js @@ -1,6 +1,6 @@ import ContractLoader from './contractLoader' import KeeperBase from './keeper-base' -import { Logger } from '../utils/logger' +import Logger from '../utils/logger' export default class OceanToken extends KeeperBase { constructor(web3, network) { @@ -10,7 +10,7 @@ export default class OceanToken extends KeeperBase { return { async getInstance() { - instance.contract = ContractLoader.load('OceanToken', instance._network, instance._web3) + instance.contract = await ContractLoader.load('OceanToken', instance._network, instance._web3) return instance } @@ -24,7 +24,7 @@ export default class OceanToken extends KeeperBase { getEthBalance(account) { return new Promise((resolve, reject) => { Logger.log('getting balance for', account) - super._web3.eth.getBalance(account, 'latest', (err, balance) => { + this._web3.eth.getBalance(account, 'latest', (err, balance) => { if (err) return reject(err) Logger.log('balance', balance) resolve(balance)