aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src
diff options
context:
space:
mode:
authorBryce <brycedneal@gmail.com>2018-06-23 07:39:58 +0800
committerBryce <brycedneal@gmail.com>2018-06-23 07:41:47 +0800
commitf7fe9b096115312f25f90a27a8f9e13e374dcc2b (patch)
tree9ad7cfb030db8172ceb90c74fbad4f996cb1e0d6 /packages/order-watcher/src
parent9f8cad93f794b9a95b3a947c5c61eefcb603f2e9 (diff)
downloaddexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar.gz
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar.bz2
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar.lz
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar.xz
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.tar.zst
dexon-sol-tools-f7fe9b096115312f25f90a27a8f9e13e374dcc2b.zip
Update at abi_decoder
Diffstat (limited to 'packages/order-watcher/src')
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts
index bf31c9c4d..140aa341b 100644
--- a/packages/order-watcher/src/order_watcher/order_watcher.ts
+++ b/packages/order-watcher/src/order_watcher/order_watcher.ts
@@ -16,7 +16,6 @@ import {
} from '@0xproject/types';
import { errorUtils, intervalUtils } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
-import * as ethers from 'ethers';
import * as _ from 'lodash';
import { artifacts } from '../artifacts';
@@ -242,15 +241,7 @@ export class OrderWatcher {
return;
}
const log = logIfExists as LogEntryEvent; // At this moment we are sure that no error occured and log is defined.
- let maybeDecodedLog;
- try {
- maybeDecodedLog = this._web3Wrapper.abiDecoder.tryToDecodeLogOrNoop<ContractEventArgs>(log);
- } catch (error) {
- if (error.code === ethers.errors.INVALID_ARGUMENT) {
- return; // noop
- }
- throw error;
- }
+ const maybeDecodedLog = this._web3Wrapper.abiDecoder.tryToDecodeLogOrNoop<ContractEventArgs>(log);
const isLogDecoded = !_.isUndefined(((maybeDecodedLog as any) as LogWithDecodedArgs<ContractEventArgs>).event);
if (!isLogDecoded) {
return; // noop