Cannot modify loop variable
issue when trying to append something to an array during a loop.
#4163
Milestone
Cannot modify loop variable
issue when trying to append something to an array during a loop.
#4163
Version Information
vyper --version
): 0.4.0python --version
): 3.10.0What's your issue about?
When iterating through an array of addresses, I have to append to another array the ones already processed.
When trying to append to that array I get the compilation error
Cannot modify loop variable
It works if I don't iterate through the addresses array, but use indices to do so instead.
works with:
The text was updated successfully, but these errors were encountered: