aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-26 19:57:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:37 +0800
commitc02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df (patch)
tree989804625ca4019a837b272d49b5632820dac400 /packages/0x.js/src/order_watcher/order_state_watcher.ts
parent9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c (diff)
downloaddexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.gz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.bz2
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.lz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.xz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.zst
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.zip
Fix tslint issues
Diffstat (limited to 'packages/0x.js/src/order_watcher/order_state_watcher.ts')
-rw-r--r--packages/0x.js/src/order_watcher/order_state_watcher.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts
index 446fab676..576be00c8 100644
--- a/packages/0x.js/src/order_watcher/order_state_watcher.ts
+++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts
@@ -223,12 +223,12 @@ export class OrderStateWatcher {
return;
}
const log = logIfExists as LogEvent; // At this moment we are sure that no error occured and log is defined.
- const maybeDecodedLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
- const isLogDecoded = !_.isUndefined((maybeDecodedLog as LogWithDecodedArgs<any>).event);
+ const maybeDecodedLog = this._abiDecoder.tryToDecodeLogOrNoop<ContractEventArgs>(log);
+ const isLogDecoded = !_.isUndefined(((maybeDecodedLog as any) as LogWithDecodedArgs<ContractEventArgs>).event);
if (!isLogDecoded) {
return; // noop
}
- const decodedLog = maybeDecodedLog as LogWithDecodedArgs<ContractEventArgs>;
+ const decodedLog = (maybeDecodedLog as any) as LogWithDecodedArgs<ContractEventArgs>;
let makerToken: string;
let makerAddress: string;
switch (decodedLog.event) {