aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-03 20:52:28 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-04 16:14:19 +0800
commit87374d7f46b6365078d20e8e0660520080facebe (patch)
tree048706269647d79358682409dc6894adb8ae71a4 /src/utils
parentefa85f844bcf59aa63d940a89d5899462239878a (diff)
downloaddexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar.gz
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar.bz2
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar.lz
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar.xz
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.tar.zst
dexon-sol-tools-87374d7f46b6365078d20e8e0660520080facebe.zip
Refactor abi decoder
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/abi_decoder.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/abi_decoder.ts b/src/utils/abi_decoder.ts
index 88053aade..2b420bd1f 100644
--- a/src/utils/abi_decoder.ts
+++ b/src/utils/abi_decoder.ts
@@ -1,7 +1,7 @@
import * as Web3 from 'web3';
import * as _ from 'lodash';
import * as BigNumber from 'bignumber.js';
-import {AbiType, DecodedLogArgs, DecodedArgs, LogWithDecodedArgs} from '../types';
+import {AbiType, DecodedLogArgs, DecodedArgs, LogWithDecodedArgs, RawLog} from '../types';
import * as SolidityCoder from 'web3/lib/solidity/coder';
export class AbiDecoder {
@@ -10,7 +10,7 @@ export class AbiDecoder {
constructor(abiArrays: Web3.AbiDefinition[][]) {
_.map(abiArrays, this.addABI.bind(this));
}
- public tryToDecodeLogOrNoOp(log: Web3.LogEntry): LogWithDecodedArgs|Web3.LogEntry {
+ public tryToDecodeLogOrNoOp(log: Web3.LogEntry): LogWithDecodedArgs|RawLog {
const methodId = log.topics[0];
const event = this.methodIds[methodId];
if (_.isUndefined(event)) {