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
The limitation here is that we check struct fields are valid before running any attributes on the struct. So even if they'll be replaced later they need to start in a valid state.
In light of that limitation, why not instead of relying on convention add the field within the macro? Assuming the intention is for users to choose their own Context types, they could specify the type they want to use in the macro call. E.g.
#[storage(MyContext)]structStorage{}
...although we don't support passing in types directly into attributes so you'd have to convert it to one:
Aim
Given
Expected Behavior
The above example should compile, allowing the injection of the
<Context>
generic struct to the fields inStorage
Bug
Compiler fails with
More context here: AztecProtocol/aztec-packages#8658
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
Nice-to-have
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: