-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Out of bounds array access #8364
Comments
Solidity does not have multi-dimensional arrays, it only has arrays of arrays. Because of that, |
However, even for nested arrays, why do you start with the size of the inside array? When you access it you have to start with the index of the outside array and then continue inwards. For example, when I had an array with a bit more nesting like this: So why aren't the definition and the access consistent, i.e., by starting both from the outside? |
@rschumi0 I hope it is consistent: |
Description
Compiler returns error:
Out of bounds array access
atmsg.sender.send(balances[2][3])
;Environment
Steps to Reproduce
Compile with the above source code
The text was updated successfully, but these errors were encountered: