Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index is Undefined in lockdropHelper #30

Open
ltfschoen opened this issue Mar 30, 2020 · 1 comment
Open

index is Undefined in lockdropHelper #30

ltfschoen opened this issue Mar 30, 2020 · 1 comment

Comments

@ltfschoen
Copy link

The lockdropHelper iterates through index of the lockdropContracts that is passed into the function here https://github.com/hicommonwealth/edgeware-lockdrop/blob/master/helpers/lockdropHelper.js#L71, but in most of the tests we're only passing in a single contract https://github.com/hicommonwealth/edgeware-lockdrop/blob/master/test/1-lockdrop.spec.js#L144 that's generated here https://github.com/hicommonwealth/edgeware-lockdrop/blob/master/test/1-lockdrop.spec.js#L21, instead of passing in an array of them.

@ltfschoen
Copy link
Author

ltfschoen commented Mar 30, 2020

It should be for (let index in lockdropContracts) { instead of just for (index in lockdropContracts) { otherwise it gives error index is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant