diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 03:13:34 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:37 +0800 |
commit | 8935146240838fc84c9b73308908119f9567e6b3 (patch) | |
tree | 11ab4be6bbc0ea1fc47a91e03faf6ff9754e021c /packages/0x.js/src | |
parent | 66aaceea915b6412c8ff8bcb5001363da8aaca39 (diff) | |
download | dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar.gz dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar.bz2 dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar.lz dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar.xz dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.tar.zst dexon-sol-tools-8935146240838fc84c9b73308908119f9567e6b3.zip |
Make exchange subscriptions non-async
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r-- | packages/0x.js/src/contract_wrappers/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts index 9ab03454c..22338d70f 100644 --- a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts @@ -658,9 +658,9 @@ export class ExchangeWrapper extends ContractWrapper { * @param callback Callback that gets called when a log is added/removed * @return Subscription token used later to unsubscribe */ - public async subscribeAsync<ArgsType extends ExchangeContractEventArgs>( + public subscribe<ArgsType extends ExchangeContractEventArgs>( eventName: ExchangeEvents, indexFilterValues: IndexedFilterValues, - callback: EventCallback<ArgsType>): Promise<string> { + callback: EventCallback<ArgsType>): string { assert.doesBelongToStringEnum('eventName', eventName, ExchangeEvents); assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); assert.isFunction('callback', callback); |