diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-06 02:46:05 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-06 02:46:05 +0800 |
commit | 59cb2132f27c0c28a1e6077aaac320e485786e65 (patch) | |
tree | 882dda46b44061bfab57139d8d11d7652cb478c2 /packages/contracts/src/utils/log_decoder.ts | |
parent | 9778695b4ad1fd999eb79b01c768a2f2b9938917 (diff) | |
download | dexon-0x-contracts-59cb2132f27c0c28a1e6077aaac320e485786e65.tar.gz dexon-0x-contracts-59cb2132f27c0c28a1e6077aaac320e485786e65.tar.zst dexon-0x-contracts-59cb2132f27c0c28a1e6077aaac320e485786e65.zip |
Linter now passes
Diffstat (limited to 'packages/contracts/src/utils/log_decoder.ts')
-rw-r--r-- | packages/contracts/src/utils/log_decoder.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/src/utils/log_decoder.ts b/packages/contracts/src/utils/log_decoder.ts index 07d10e69d..79d41d2da 100644 --- a/packages/contracts/src/utils/log_decoder.ts +++ b/packages/contracts/src/utils/log_decoder.ts @@ -39,7 +39,7 @@ export class LogDecoder { } public decodeLogOrThrow<ArgsType extends DecodedLogArgs>(log: LogEntry): LogWithDecodedArgs<ArgsType> | RawLog { const logWithDecodedArgsOrLog = this._abiDecoder.tryToDecodeLogOrNoop(log); - if (_.isUndefined((logWithDecodedArgsOrLog as LogWithDecodedArgs<ArgsType>).args)) { + if (_.isUndefined((logWithDecodedArgsOrLog).args)) { throw new Error(`Unable to decode log: ${JSON.stringify(log)}`); } LogDecoder.wrapLogBigNumbers(logWithDecodedArgsOrLog); |