-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
VIP: Structs as arguments #1019
Comments
Approved, dependency on #300. |
Remaining stuff after #1115 is merged
|
Meeting Note: When eth-tester relase gets cut, we can look at implementing the final steps listed by Charles. |
We should be able to finish the work suggested as remaining in this PR at this point. |
As per this comment, @charles-cooper says there are a few things left to do to complete this VIP. I think we could punt on the last three of his suggestions to another issue, and I'd also like to note that passing structs to public functions works in Motion to close? |
yeah we could punt to another issue |
Simple Summary
Accept Structs are args.
Depends on #300
Abstract
It would be way easier to operate with different datatypes if we had better ways of interacting with more complex types like structs.
Motivation
Solidity allows accepting structs as arguments via their experimental
ABIEncoderV2
pragma.I believe v0.5 will allow this without an experimental pragma, and it will come out soon.
We should adopt this standard to make it easier to work with structs in different ways.
Specification
(Optional) allow structs to be returned as outputs.
Backwards Compatibility
No modifications of existing syntax
ABI Encoder will need to be modified, but should be backwards compatible
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: