-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat: Changes serialization for contract functions #1056
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a link to the spec so I can check that it conforms?
Yep, so we are trying to make them look closer to the mock contracts here, whichb I am regarding as specs: https://github.com/AztecProtocol/aztec3-packages/blob/master/yarn-project/noir-contracts/src/examples/zk_token_contract.json It won't conform entirely, I ran through the changes with Joe before submitting them to check that it is closer to what they need. Noting the camel case and the fact that we have an array of functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks fine to me. It would be nice to have a test which deserialises and reserialises an example contract artifact.
Flagged up a couple of differences in spec, no action needed as you say we don't expect to conform 100% but I want to make sure they're known.
Can merge once tests are passing and vecmap is dealt with.
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Tom French <[email protected]>
Co-authored-by: Tom French <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related issue(s)
Resolves #
Description
This makes the serialization for contract functions more inline with the specs
Summary of changes
Dependency additions / changes
Test additions / changes
Checklist
cargo fmt
with default settings.Documentation needs
Additional context