diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-07 06:26:40 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-07 06:26:40 +0800 |
commit | a97d77064aacda3de74b04894f110b05298c5ca8 (patch) | |
tree | fa8cfc4b0bf65b065fd2c7acc2691b1b2c6261bd /packages/contracts | |
parent | 6a2da6dc06c616ba50930bbe04a6fa200885ecfd (diff) | |
download | dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar.gz dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar.bz2 dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar.lz dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar.xz dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.tar.zst dexon-sol-tools-a97d77064aacda3de74b04894f110b05298c5ca8.zip |
Get build and tests to pass
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/src/utils/log_decoder.ts | 3 |
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); |