aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 20:31:52 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 20:31:52 +0800
commita7ba16ef4ad976bd6f80611b95d46f174b509e82 (patch)
tree7fdd6f7be0d035d79c7fe29956be2a843e2f9f92 /src/0x.ts
parent35f33962958ad68510de891c741f180547b7da0c (diff)
downloaddexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar.gz
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar.bz2
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar.lz
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar.xz
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.tar.zst
dexon-sol-tools-a7ba16ef4ad976bd6f80611b95d46f174b509e82.zip
Handle the case, when it's not possible to decode args
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/0x.ts b/src/0x.ts
index ff3220757..bde9360c3 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -287,7 +287,7 @@ export class ZeroEx {
const logsWithDecodedArgs = _.map(transactionReceipt.logs, (log: Web3.LogEntry) => {
const decodedLog = this._abiDecoder.decodeLog(log);
if (_.isUndefined(decodedLog)) {
- throw new Error('Unknown log');
+ return log;
}
const logWithDecodedArgs: LogWithDecodedArgs = {
...log,