Open ltfschoen opened 4 years ago
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.
index
lockdropContracts
It should be for (let index in lockdropContracts) { instead of just for (index in lockdropContracts) { otherwise it gives error index is not defined.
for (let index in lockdropContracts) {
for (index in lockdropContracts) {
The lockdropHelper iterates through
index
of thelockdropContracts
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.