aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src/order_watcher/order_watcher.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-06 19:06:12 +0800
committerGitHub <noreply@github.com>2018-07-06 19:06:12 +0800
commit20d349cea71dd98001da18a1cf81e1c5a1844aaa (patch)
treea1d2f0131f0c86bd3cf996a939e5f77f389b7667 /packages/order-watcher/src/order_watcher/order_watcher.ts
parentfaf5c84082fb96a2f17240ffc6e022fa8811a76a (diff)
parent1e0fa776c1b3a1c471c3ce12ced4a29f6d6a40dd (diff)
downloaddexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar.gz
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar.bz2
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar.lz
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar.xz
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.tar.zst
dexon-sol-tools-20d349cea71dd98001da18a1cf81e1c5a1844aaa.zip
Merge pull request #825 from 0xProject/fix-order-watcher
OrderWatcher Fixes
Diffstat (limited to 'packages/order-watcher/src/order_watcher/order_watcher.ts')
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts
index cac3a0923..999c1c79e 100644
--- a/packages/order-watcher/src/order_watcher/order_watcher.ts
+++ b/packages/order-watcher/src/order_watcher/order_watcher.ts
@@ -93,7 +93,8 @@ export class OrderWatcher {
const pollingIntervalIfExistsMs = _.isUndefined(config) ? undefined : config.eventPollingIntervalMs;
const stateLayer =
_.isUndefined(config) || _.isUndefined(config.stateLayer) ? BlockParamLiteral.Latest : config.stateLayer;
- this._eventWatcher = new EventWatcher(this._web3Wrapper, pollingIntervalIfExistsMs, stateLayer);
+ const isVerbose = !_.isUndefined(config) && !_.isUndefined(config.isVerbose) ? config.isVerbose : false;
+ this._eventWatcher = new EventWatcher(this._web3Wrapper, pollingIntervalIfExistsMs, stateLayer, isVerbose);
this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(
this._contractWrappers.token,
stateLayer,
@@ -236,7 +237,6 @@ export class OrderWatcher {
if (!_.isNull(err)) {
if (!_.isUndefined(this._callbackIfExists)) {
this._callbackIfExists(err);
- this.unsubscribe();
}
return;
}