aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-13 23:26:08 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-13 23:26:08 +0800
commit048302625f61ee614bc15c8e84568a49315da63c (patch)
tree7e7e4d310cbf92ba8abd83c0d1f96e82db92f047
parent6ad1900ada799eec18e870f48de785af14780a60 (diff)
downloaddexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar.gz
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar.bz2
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar.lz
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar.xz
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.tar.zst
dexon-sol-tools-048302625f61ee614bc15c8e84568a49315da63c.zip
Bind watch function on an event
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 659eff81c..a617d8003 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -563,7 +563,7 @@ export class ExchangeWrapper extends ContractWrapper {
}
private _wrapEventAsZeroExEvent(event: ContractEventObj): ZeroExEvent {
const zeroExEvent = {
- watch: event.watch,
+ watch: event.watch.bind(event),
stopWatchingAsync: async () => {
await promisify(event.stopWatching, event)();
},