From 68d051d4a7ebf652bf909d1fa6bf7c639d138202 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 6 Sep 2017 15:11:41 +0200 Subject: Rename methodID to methodId --- src/utils/abi_decoder.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/utils/abi_decoder.ts b/src/utils/abi_decoder.ts index a68a673b4..902799341 100644 --- a/src/utils/abi_decoder.ts +++ b/src/utils/abi_decoder.ts @@ -5,13 +5,13 @@ import * as SolidityCoder from 'web3/lib/solidity/coder'; export class AbiDecoder { private savedABIs: Web3.AbiDefinition[] = []; - private methodIDs: {[signatureHash: string]: Web3.EventAbi} = {}; + private methodIds: {[signatureHash: string]: Web3.EventAbi} = {}; constructor(abiArrays: Web3.AbiDefinition[][]) { _.map(abiArrays, this.addABI.bind(this)); } public decodeLog(logItem: Web3.LogEntry): DecodedArgs|undefined { - const methodID = logItem.topics[0]; - const event = this.methodIDs[methodID]; + const methodId = logItem.topics[0]; + const event = this.methodIds[methodId]; if (!_.isUndefined(event)) { const logData = logItem.data; const decodedParams: DecodedLogArgs = {}; @@ -49,7 +49,7 @@ export class AbiDecoder { if (abi.type === AbiType.Event) { const signature = `${abi.name}(${_.map(abi.inputs, input => input.type).join(',')})`; const signatureHash = new Web3().sha3(signature); - this.methodIDs[signatureHash] = abi; + this.methodIds[signatureHash] = abi; } }); this.savedABIs = this.savedABIs.concat(abiArray); -- cgit v1.2.3