aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/blockchain.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-14 09:06:02 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-14 09:13:48 +0800
commitc8a8b851d8e0622559f71843a206a0e6e601cd83 (patch)
tree143e238a68005fdb0e0d82c6750ea890fec4021c /packages/website/ts/blockchain.ts
parentc2f8858aabad2355e09ba65e900202b7c4edec5e (diff)
downloaddexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.gz
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.bz2
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.lz
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.xz
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.tar.zst
dexon-sol-tools-c8a8b851d8e0622559f71843a206a0e6e601cd83.zip
Consolidate all console.log into the @0xproject/utils package
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r--packages/website/ts/blockchain.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts
index c92023541..a3427baee 100644
--- a/packages/website/ts/blockchain.ts
+++ b/packages/website/ts/blockchain.ts
@@ -23,7 +23,7 @@ import {
LedgerWalletSubprovider,
RedundantRPCSubprovider,
} from '@0xproject/subproviders';
-import { BigNumber, intervalUtils, promisify } from '@0xproject/utils';
+import { BigNumber, intervalUtils, logUtils, promisify } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as _ from 'lodash';
import * as React from 'react';
@@ -405,7 +405,7 @@ export class Blockchain {
},
5000,
(err: Error) => {
- utils.consoleLog(`Polling tokenBalance failed: ${err}`);
+ logUtils.log(`Polling tokenBalance failed: ${err}`);
intervalUtils.clearAsyncExcludingInterval(tokenPollInterval);
reject(err);
},
@@ -822,7 +822,7 @@ export class Blockchain {
if (!_.isUndefined(contractAddress)) {
const doesContractExist = await this.doesContractExistAtAddressAsync(contractAddress);
if (!doesContractExist) {
- utils.consoleLog(`Contract does not exist: ${artifact.contract_name} at ${contractAddress}`);
+ logUtils.log(`Contract does not exist: ${artifact.contract_name} at ${contractAddress}`);
throw new Error(BlockchainCallErrs.ContractDoesNotExist);
}
}
@@ -832,7 +832,7 @@ export class Blockchain {
return contractInstance;
} catch (err) {
const errMsg = `${err}`;
- utils.consoleLog(`Notice: Error encountered: ${err} ${err.stack}`);
+ logUtils.log(`Notice: Error encountered: ${err} ${err.stack}`);
if (_.includes(errMsg, 'not been deployed to detected network')) {
throw new Error(BlockchainCallErrs.ContractDoesNotExist);
} else {