aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/abi_decoder.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-26 19:57:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:37 +0800
commitc02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df (patch)
tree989804625ca4019a837b272d49b5632820dac400 /packages/utils/src/abi_decoder.ts
parent9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c (diff)
downloaddexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.gz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.bz2
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.lz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.xz
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.tar.zst
dexon-sol-tools-c02dfc4fb1bf39ceaaf80ec68fb8907a4a11e0df.zip
Fix tslint issues
Diffstat (limited to 'packages/utils/src/abi_decoder.ts')
-rw-r--r--packages/utils/src/abi_decoder.ts3
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 (