-
Notifications
You must be signed in to change notification settings - Fork 166
fix(standards): report every storage size a standard note accepts #3810
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
Changes from 3 commits
e72316f
5e3a2f4
570997d
7c58eea
03dea5a
9b8927d
067d055
9b628ac
d136160
acd5e56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,6 +189,13 @@ impl OwnerConfigNote { | |
| /// new_owner_prefix]`), while `AcceptOwnership` / `RenounceOwnership` use 1 (`[selector]`). | ||
| pub const MAX_NUM_STORAGE_ITEMS: usize = 3; | ||
|
|
||
| /// Lower bound on the number of storage items of an OwnerConfig note. | ||
| /// | ||
| /// `AcceptOwnership` / `RenounceOwnership` use this size; no size between it and | ||
| /// [`Self::MAX_NUM_STORAGE_ITEMS`] is valid. Keep in sync with `NUM_ITEMS_*` in | ||
| /// `owner_config.masm`. | ||
| pub const MIN_NUM_STORAGE_ITEMS: usize = 1; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: do we have to have these pub const NUM_STORAGE_ITEMS: NumStorageItems = NumStorageItems::Range { min: 1, max: 3 };I think any reasonable LLM should be able to make the link between the named |
||
|
|
||
| // PUBLIC ACCESSORS | ||
| // -------------------------------------------------------------------------------------------- | ||
|
|
||
|
|
||
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.
Doesn't necessarily have to be in this PR, but maybe it makes sense to start representing the number of storage items with a simple
enumas we have very distinct variants now? Something like: