aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 21:11:41 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 21:11:41 +0800
commit68d051d4a7ebf652bf909d1fa6bf7c639d138202 (patch)
tree5c2ab013c0c34c7520fbae356716fdae63c03045 /src
parentf1ed572819475fca49b6a1ca939d2ec953aaa868 (diff)
downloaddexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar.gz
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar.bz2
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar.lz
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar.xz
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.tar.zst
dexon-sol-tools-68d051d4a7ebf652bf909d1fa6bf7c639d138202.zip
Rename methodID to methodId
Diffstat (limited to 'src')
-rw-r--r--src/utils/abi_decoder.ts8
1 files changed, 4 insertions, 4 deletions
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);