aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-05 22:33:00 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:37 +0800
commitc8c86c44f8b978d74e03c11d4bb1813e76574af3 (patch)
tree3caa7b2613496052ca90176822ace79fc28dcc44 /packages/0x.js/src
parentf917a4a34a9d7b25de85f9ce5adafa0f16ea6618 (diff)
downloaddexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar.gz
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar.bz2
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar.lz
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar.xz
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.tar.zst
dexon-sol-tools-c8c86c44f8b978d74e03c11d4bb1813e76574af3.zip
Fix callback types
Diffstat (limited to 'packages/0x.js/src')
-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 d308d207e..9c4e5dfd3 100644
--- a/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
+++ b/packages/0x.js/src/contract_wrappers/contract_wrapper.ts
@@ -87,7 +87,7 @@ export class ContractWrapper {
}
const filterToken = filterUtils.generateUUID();
this._filters[filterToken] = filter;
- this._filterCallbacks[filterToken] = callback;
+ this._filterCallbacks[filterToken] = callback as EventCallback<ContractEventArgs>;
return filterToken;
}
protected async _getLogsAsync<ArgsType extends ContractEventArgs>(