Skip to content
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(Aztec.nr): Abstract away storage initialisation from the user #1890

Closed
Maddiaa0 opened this issue Aug 30, 2023 · 0 comments · Fixed by #2406
Closed

feat(Aztec.nr): Abstract away storage initialisation from the user #1890

Maddiaa0 opened this issue Aug 30, 2023 · 0 comments · Fixed by #2406
Labels
C-aztec.nr Component: Aztec smart contract framework

Comments

@Maddiaa0
Copy link
Member

Maddiaa0 commented Aug 30, 2023

Despite the existence of our macro syntax. The user still needs to call let storage = Storage::init(). at the beginning of each function call.
Defining storage should be standardised such that when it is defined at the top of the file the developer does not need to worry about it too much.

This issue can be converted into a discussion on how this should be achieved

Tracked by #1891

@github-project-automation github-project-automation bot moved this to Todo in A3 Aug 30, 2023
@iAmMichaelConnor iAmMichaelConnor added the C-aztec.nr Component: Aztec smart contract framework label Aug 30, 2023
Maddiaa0 added a commit that referenced this issue Sep 26, 2023
After a discussion with lasse, decided to get this over the line,
removes the storage init and places it inside the macro expansion

todo:
-  update docs
- release noir

related work:
- noir-lang/noir#2750


fixes: #2163
fixes: #1890
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Sep 26, 2023
AztecBot pushed a commit to AztecProtocol/docs that referenced this issue Sep 27, 2023
After a discussion with lasse, decided to get this over the line,
removes the storage init and places it inside the macro expansion

todo:
-  update docs
- release noir

related work:
- noir-lang/noir#2750


fixes: AztecProtocol/aztec-packages#2163
fixes: AztecProtocol/aztec-packages#1890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-aztec.nr Component: Aztec smart contract framework
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants