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

[contract-deploy] Macro for emitting an initialization nullifier in the constructor #4060

Closed
Tracked by #4052
spalladino opened this issue Jan 16, 2024 · 1 comment
Closed
Tracked by #4052

Comments

@spalladino
Copy link
Collaborator

spalladino commented Jan 16, 2024

Contract constructors should now emit an "initialization nullifier", which signals that the contract has been constructed. This prevents a contract from being initialized more than once. The code for emitting the initialization nullifier should be injected under the hood by a macro.

Test that a contract cannot be initialized more than once, either when called from another contract (in the same or in different txs) or when called directly from aztecjs. Note that this allows fixing tests broken in #4056.

@spalladino
Copy link
Collaborator Author

Closing as done

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

No branches or pull requests

1 participant