Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 9058c44

Browse files
committed
idx => index
1 parent 1275f39 commit 9058c44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/contract/contract.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class Contract {
381381
// If event provided, remove the potential event signature
382382
// as the first element of the topics
383383
const topics = signature
384-
? [ signature ].concat(optionTopics.filter((t, idx) => idx > 0 || t !== signature))
384+
? [ signature ].concat(optionTopics.filter((t, index) => index > 0 || t !== signature))
385385
: optionTopics;
386386

387387
const options = Object.assign({}, _options, {

src/util/types.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function isHex (_test) {
4040
const test = _test.toLowerCase();
4141
let hex = true;
4242

43-
for (let idx = 0; hex && idx < test.length; idx++) {
44-
hex = HEXDIGITS.includes(test[idx]);
43+
for (let index = 0; hex && index < test.length; index++) {
44+
hex = HEXDIGITS.includes(test[index]);
4545
}
4646

4747
return hex;

0 commit comments

Comments
 (0)