You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modifying the array directly in the loop body is disallowed, so this could be considered a bug:
x: uint256[1]
@privatedefstore_in_x(index: uint256, value: uint256):
self.x[index] =value@publicdeffoo():
forninself.x:
# self.x[0] = n * 2 # blocked with "Altering list 'self.x' which is being iterated!"self.store_in_x(0, n*2) # BUG: allowed
The text was updated successfully, but these errors were encountered:
Modifying the array directly in the loop body is disallowed, so this could be considered a bug:
The text was updated successfully, but these errors were encountered: