What was the root cause of the problem originally / what feature was missing?
Missing check for code.length in for loop, as a result sometimes code's length was greater than the one set in config.code_length
How does this pull request solve it (in broad terms)?
Add check in for loop.
Also add test for this
Does it close any open issues?
Closes #64
Quick checklist
[X] eslint shows no errors
cd web-dapp
eslint .
[X] docs were updated where necessary OR they don't need to be updated
[X] tests were updated where necessary OR they don't need to be updated
What is it? (leave one option)
(Fix)
What was the root cause of the problem originally / what feature was missing? Missing check for
code.length
infor
loop, as a result sometimes code's length was greater than the one set inconfig.code_length
How does this pull request solve it (in broad terms)? Add check in
for
loop. Also add test for thisDoes it close any open issues? Closes #64
Quick checklist