Skip to content

Commit

Permalink
fix: remove undefined reference to error (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosantangelo authored and Juan Cazala committed Apr 26, 2018
1 parent ac4da74 commit 33abefc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ethereum/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { NodeWallet } from './wallets'
import { ethUtils } from './ethUtils'
import { promisify } from '../utils/index'
import { Contract } from './Contract'
import { error } from 'util'
import { Wallet } from './wallets/Wallet'
import { Abi } from './abi'

Expand Down Expand Up @@ -122,11 +121,10 @@ export namespace eth {
contract = contractData
contractName = contract.getContractName()
} else {
error('The parameter is not instance of a contract', contractData)
console.error('The parameter is not instance of a contract', contractData)
continue
}

if (!contractName) continue

const instance = await wallet.createContractInstance(contract.abi, contract.address)
contract.setInstance(instance)

Expand Down

0 comments on commit 33abefc

Please sign in to comment.