diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-03 20:52:28 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-04 16:14:19 +0800 |
commit | 87374d7f46b6365078d20e8e0660520080facebe (patch) | |
tree | 048706269647d79358682409dc6894adb8ae71a4 /src/utils/abi_decoder.ts | |
parent | efa85f844bcf59aa63d940a89d5899462239878a (diff) | |
download | dexon-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/abi_decoder.ts')
-rw-r--r-- | src/utils/abi_decoder.ts | 4 |
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)) { |