From a7ba16ef4ad976bd6f80611b95d46f174b509e82 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 6 Sep 2017 14:31:52 +0200 Subject: Handle the case, when it's not possible to decode args --- src/0x.ts | 2 +- src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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, diff --git a/src/types.ts b/src/types.ts index 4f9c6714d..7e370e3f1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -410,5 +410,5 @@ export interface DecodedArgs { export interface LogWithDecodedArgs extends Web3.LogEntry, DecodedArgs {} export interface TransactionReceiptWithDecodedLogs extends Web3.TransactionReceipt { - logs: LogWithDecodedArgs[]; + logs: Array; } -- cgit