Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

starter token checkpoint 1 and 2 #5

wants to merge 1 commit into from

Conversation

sklppy88
Copy link
Collaborator

@sklppy88 sklppy88 commented Aug 5, 2025

No description provided.

}

#[contract_library_function]
fn _assert_is_owner(storage: Storage, maybe_owner: AztecAddress) {

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.

Copy link

@critesjosh critesjosh left a 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" }

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

Suggested change
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;

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants