aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-07 06:26:40 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-07 06:26:40 +0800
commita97d77064aacda3de74b04894f110b05298c5ca8 (patch)
treefa8cfc4b0bf65b065fd2c7acc2691b1b2c6261bd /packages/contracts
parent6a2da6dc06c616ba50930bbe04a6fa200885ecfd (diff)
downloaddexon-0x-contracts-a97d77064aacda3de74b04894f110b05298c5ca8.tar.gz
dexon-0x-contracts-a97d77064aacda3de74b04894f110b05298c5ca8.tar.zst
dexon-0x-contracts-a97d77064aacda3de74b04894f110b05298c5ca8.zip
Get build and tests to pass
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/src/utils/log_decoder.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/log_decoder.ts b/packages/contracts/src/utils/log_decoder.ts
index 79d41d2da..07127ba79 100644
--- a/packages/contracts/src/utils/log_decoder.ts
+++ b/packages/contracts/src/utils/log_decoder.ts
@@ -39,7 +39,8 @@ export class LogDecoder {
}
public decodeLogOrThrow<ArgsType extends DecodedLogArgs>(log: LogEntry): LogWithDecodedArgs<ArgsType> | RawLog {
const logWithDecodedArgsOrLog = this._abiDecoder.tryToDecodeLogOrNoop(log);
- if (_.isUndefined((logWithDecodedArgsOrLog).args)) {
+ // tslint:disable-next-line:no-unnecessary-type-assertion
+ if (_.isUndefined((logWithDecodedArgsOrLog as LogWithDecodedArgs<ArgsType>).args)) {
throw new Error(`Unable to decode log: ${JSON.stringify(log)}`);
}
LogDecoder.wrapLogBigNumbers(logWithDecodedArgsOrLog);