aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-01 19:51:04 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-01 19:51:04 +0800
commitf6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96 (patch)
treef2eafbe32f158984ba5c77ec921ac8a09107dbd3
parent39e3733be4b2a8bb6f163c0aa02fbe57db213e61 (diff)
downloaddexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar.gz
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar.bz2
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar.lz
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar.xz
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.tar.zst
dexon-sol-tools-f6d963d45ac1e07e3cd56cdd47f7f1576dd7ac96.zip
Fix errors after TS upgrade
-rw-r--r--packages/0x.js/src/contract_wrappers/contract_wrapper.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
index 873489dc9..2d5818618 100644
--- a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
@@ -34,8 +34,8 @@ export class ContractWrapper {
protected _web3Wrapper: Web3Wrapper;
private _networkId: number;
private _abiDecoder?: AbiDecoder;
- private _blockAndLogStreamerIfExists: BlockAndLogStreamer | undefined;
- private _blockAndLogStreamInterval: NodeJS.Timer;
+ private _blockAndLogStreamerIfExists?: BlockAndLogStreamer;
+ private _blockAndLogStreamIntervalIfExists?: NodeJS.Timer;
private _filters: { [filterToken: string]: Web3.FilterObject };
private _filterCallbacks: {
[filterToken: string]: EventCallback<ContractEventArgs>;
@@ -162,7 +162,7 @@ export class ContractWrapper {
);
const catchAllLogFilter = {};
this._blockAndLogStreamerIfExists.addLogFilter(catchAllLogFilter);
- this._blockAndLogStreamInterval = intervalUtils.setAsyncExcludingInterval(
+ this._blockAndLogStreamIntervalIfExists = intervalUtils.setAsyncExcludingInterval(
this._reconcileBlockAsync.bind(this),
constants.DEFAULT_BLOCK_POLLING_INTERVAL,
this._onReconcileBlockError.bind(this),
@@ -191,7 +191,7 @@ export class ContractWrapper {
}
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogAdded(this._onLogAddedSubscriptionToken as string);
this._blockAndLogStreamerIfExists.unsubscribeFromOnLogRemoved(this._onLogRemovedSubscriptionToken as string);
- intervalUtils.clearAsyncExcludingInterval(this._blockAndLogStreamInterval);
+ intervalUtils.clearAsyncExcludingInterval(this._blockAndLogStreamIntervalIfExists as NodeJS.Timer);
delete this._blockAndLogStreamerIfExists;
}
private async _reconcileBlockAsync(): Promise<void> {