-
Notifications
You must be signed in to change notification settings - Fork 284
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(noir): separate arguments of inputs #456
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.
Looks good! Great that we have the open
keyword now.
_call_context: pub CallContext, | ||
amount: pub Field, | ||
recipient: pub Point, | ||
open fn mint( |
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.
Whoa!
fn constructor( | ||
inputs: pub Inputs, | ||
) -> pub [Field; dep::aztec3::abi::PUBLIC_INPUTS_LENGTH] { | ||
PrivateFunctionContext::new().finish(inputs) | ||
} | ||
|
||
/// ABI value type "secret" | ||
/// ABI value params [{"name":"input","type":{"kind":"field"},"visibility":"public"}] | ||
/// ABI value return [{"kind":"field"}] |
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.
Shouldn't we keep the return
annotation at least? Can the client consume this value?
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.
Users currently cannot consume the return value for secret functions! The idea is to phase out the ABI manual comments for the introduction of the aztec noir compiler 😄
Description
Closes #455
Extracts the arguments from the inputs struct in noir contracts. For now they have to be manually pushed to the context.
Updates the postprocessor to omit the Inputs & CallContext, allowing to avoid writing ABI comments in the noir code.
Checklist: