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/utils/src/abi_decoder.ts | |
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/utils/src/abi_decoder.ts')
-rw-r--r-- | packages/utils/src/abi_decoder.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts index d6584d44d..f96ee2edb 100644 --- a/packages/utils/src/abi_decoder.ts +++ b/packages/utils/src/abi_decoder.ts @@ -3,7 +3,6 @@ import * as _ from 'lodash'; import * as Web3 from 'web3'; import * as SolidityCoder from 'web3/lib/solidity/coder'; -// tslint:disable-next-line:no-unused-variable import { BigNumber } from './configured_bignumber'; export class AbiDecoder { @@ -39,7 +38,7 @@ export class AbiDecoder { _.map(event.inputs, (param: Web3.EventParameter) => { // Indexed parameters are stored in topics. Non-indexed ones in decodedData - let value = param.indexed ? log.topics[topicsIndex++] : decodedData[dataIndex++]; + let value: BigNumber | string = param.indexed ? log.topics[topicsIndex++] : decodedData[dataIndex++]; if (param.type === SolidityTypes.Address) { value = AbiDecoder._padZeros(new BigNumber(value).toString(16)); } else if ( |