diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-13 23:26:08 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-13 23:26:08 +0800 |
commit | 048302625f61ee614bc15c8e84568a49315da63c (patch) | |
tree | 7e7e4d310cbf92ba8abd83c0d1f96e82db92f047 /src/contract_wrappers | |
parent | 6ad1900ada799eec18e870f48de785af14780a60 (diff) | |
download | dexon-0x-contracts-048302625f61ee614bc15c8e84568a49315da63c.tar.gz dexon-0x-contracts-048302625f61ee614bc15c8e84568a49315da63c.tar.zst dexon-0x-contracts-048302625f61ee614bc15c8e84568a49315da63c.zip |
Bind watch function on an event
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 2 |
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)(); }, |