diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 04:02:40 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 04:07:59 +0800 |
commit | c07d64c6ff3c5d8a127d6bbcbc5e0f0d71070908 (patch) | |
tree | 2b81025f5f5be36e3ba72bf696b755a8cafbce87 /packages/utils/src | |
parent | c07e3a76bb443641246b05c42f7a05bceb28bc88 (diff) | |
download | dexon-0x-contracts-c07d64c6ff3c5d8a127d6bbcbc5e0f0d71070908.tar.gz dexon-0x-contracts-c07d64c6ff3c5d8a127d6bbcbc5e0f0d71070908.tar.zst dexon-0x-contracts-c07d64c6ff3c5d8a127d6bbcbc5e0f0d71070908.zip |
Rename idx to i
Diffstat (limited to 'packages/utils/src')
-rw-r--r-- | packages/utils/src/abi_decoder.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/utils/src/abi_decoder.ts b/packages/utils/src/abi_decoder.ts index 024da3741..2b496eb17 100644 --- a/packages/utils/src/abi_decoder.ts +++ b/packages/utils/src/abi_decoder.ts @@ -37,9 +37,9 @@ export class AbiDecoder { const decodedData = ethersInterface.events[event.name].parse(log.data); let failedToDecode = false; - _.forEach(event.inputs, (param: Web3.EventParameter, idx: number) => { + _.forEach(event.inputs, (param: Web3.EventParameter, i: number) => { // Indexed parameters are stored in topics. Non-indexed ones in decodedData - let value: BigNumber | string | number = param.indexed ? log.topics[topicsIndex++] : decodedData[idx]; + let value: BigNumber | string | number = param.indexed ? log.topics[topicsIndex++] : decodedData[i]; if (_.isUndefined(value)) { failedToDecode = true; return; |