diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-26 19:57:51 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 23:01:37 +0800 |
commit | c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df (patch) | |
tree | 989804625ca4019a837b272d49b5632820dac400 /packages/0x.js/src/contract_wrappers | |
parent | 9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c (diff) | |
download | dexon-0x-contracts-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.gz dexon-0x-contracts-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.zst dexon-0x-contracts-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.zip |
Fix tslint issues
Diffstat (limited to 'packages/0x.js/src/contract_wrappers')
-rw-r--r-- | packages/0x.js/src/contract_wrappers/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts index 5672f0360..fceab851a 100644 --- a/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/0x.js/src/contract_wrappers/exchange_wrapper.ts @@ -844,9 +844,9 @@ export class ExchangeWrapper extends ContractWrapper { public throwLogErrorsAsErrors(logs: Array<LogWithDecodedArgs<DecodedLogArgs> | Web3.LogEntry>): void { const errLog = _.find(logs, { event: ExchangeEvents.LogError, - }) as LogWithDecodedArgs<LogErrorContractEventArgs> | undefined; + }); if (!_.isUndefined(errLog)) { - const logArgs = errLog.args; + const logArgs = (errLog as LogWithDecodedArgs<LogErrorContractEventArgs>).args; const errCode = logArgs.errorId.toNumber(); const errMessage = this._exchangeContractErrCodesToMsg[errCode]; throw new Error(errMessage); |