aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-23 03:37:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-24 05:13:37 +0800
commit08569dbe6cadc2dd93a3195f4a6967dc34e5ffba (patch)
treeb83bf0886a3ae240fff59c8c6585f57b8039bb62
parenta38ef3655b47228c2cc949d917636a19d7e0dddc (diff)
downloaddexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar.gz
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar.bz2
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar.lz
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar.xz
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.tar.zst
dexon-sol-tools-08569dbe6cadc2dd93a3195f4a6967dc34e5ffba.zip
Await block reconcilation
-rw-r--r--packages/0x.js/src/contract_wrappers/contract_wrapper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
index c1c95c6db..93912c3d9 100644
--- a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
@@ -140,7 +140,7 @@ export class ContractWrapper {
// We need to coerce to Block type cause Web3.Block includes types for mempool blocks
if (!_.isUndefined(this._blockAndLogStreamer)) {
// If we clear the interval while fetching the block - this._blockAndLogStreamer will be undefined
- this._blockAndLogStreamer.reconcileNewBlock(latestBlock as any as Block);
+ await this._blockAndLogStreamer.reconcileNewBlock(latestBlock as any as Block);
}
} catch (err) {
const filterTokens = _.keys(this._filterCallbacks);