-
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
New ABI decoder fails on arrays of dynamic types as calldata #3293
Comments
Is this maybe related to I posted #3493 to track that issue. |
This is unimplemented mainly due to the fact that we did not yet decide how such types are stored on the stack. It was not a problem for the old decoder because it only supported one-dimensional arrays. Those are stored with two stack items: offset and size. I guess if we know the type, it should still be possible to do that by just storing the type. Still, a lot of infrastructure is still missing - you cannot copy multi-dimensional calldata arrays to memory or storage. |
After 0.5.0:
|
What is funny, without the ABIEncoderV2 pragma the message is:
|
throws assertion
Which means arrays of dynamic types cannot be decoded as calldata. Though changing it to
public
will make it working, because the decoder is invoked elsewhere.The text was updated successfully, but these errors were encountered: