Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Oct 17, 2024
1 parent 98abe47 commit 15d2984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/macros/storage/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub comptime fn storage(s: StructDefinition) -> Quoted {
/// with signature `fn init<Context>(context: Context) -> Self`, which allows for manual control of storage slot
/// allocation. Similarly, no `StorageLayout` struct will be created.
/// Only a single struct in the entire contract should have this macro (or `storage`) applied to it.
pub comptime fn storage_no_init(s: StructDefinition) {
pub comptime fn storage_no_init(_s: StructDefinition) {
// All `storage` does is provide the `init` implementation, so we don't need to do anything here. Applying this
// macro however will cause for `macros::utils::module_has_storage` to return true, resulting in the injection of
// the `storage` variable.
Expand Down

0 comments on commit 15d2984

Please sign in to comment.