-
Notifications
You must be signed in to change notification settings - Fork 0
starter token checkpoint 1 and 2 #5
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
base: main
Are you sure you want to change the base?
Conversation
} | ||
|
||
#[contract_library_function] | ||
fn _assert_is_owner(storage: Storage, maybe_owner: AztecAddress) { |
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.
do we need this function defined twice in the contract? once as a library function and once as a public internal function?
If so, it would be good to explain why.
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.
I'd prefer just to have 1 contract in this project, rather than 1 for each checkpoint. I know this is going to be paired with the getting started tutorial, but it would be helpful to have extensive code comments throughout, so the contract by itself is still a great learning resource.
type = "contract" | ||
|
||
[dependencies] | ||
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.9", directory = "noir-projects/aztec-nr/aztec" } |
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.
Update versions to the latest
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v0.87.9", directory = "noir-projects/aztec-nr/aztec" } | |
aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v1.2.1", directory = "noir-projects/aztec-nr/aztec" } |
@@ -0,0 +1,127 @@ | |||
use aztec::macros::aztec; | |||
|
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.
Along with specific code comments, let's add a comment block at the top explaining the educational purpose of this contract and a disclaimer about it's lack of security. Add a link to a more production ready reference (e.g. the defi wonderland standard)
No description provided.