DAVFoundation / xplore

⛓ A block explorer for local Ethereum testnets
MIT License
62 stars 65 forks source link

change syntax loop in blockchain.js issue #53 #54

Closed loic-combis closed 6 years ago

loic-combis commented 6 years ago

Description

I replaced the line : for (let i in eventContractNames) { By : for (const contractName in eventContractNames) { And removed the line : const contractName = eventContractNames[i];

Related Issue

This pull request is related to the issue #53

Motivation and Context

It makes the code more readable.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

cg-cnu commented 6 years ago

Hey @combisloic Thanks for the contribution. Just a small issue I found here...

The for loop syntax you are supposed to change is from for i in to for i of. You can read about the differences here... for...in and for...of. Just fix it and commit again, it will update the current pr. Let me know if you have any issues! Thanks!

cg-cnu commented 6 years ago

Hey @combisloic Do you need any help in pushing this one out! Let me know! Thanks!