Skip to content

refactor: remove redundant note storage item count from advice map#2376

Merged
PhilippGackstatter merged 3 commits into0xMiden:nextfrom
Farukest:feat/issue-2317-remove-storage-item-count
Feb 2, 2026
Merged

refactor: remove redundant note storage item count from advice map#2376
PhilippGackstatter merged 3 commits into0xMiden:nextfrom
Farukest:feat/issue-2317-remove-storage-item-count

Conversation

@Farukest
Copy link
Copy Markdown
Contributor

Since note storage items are no longer padded (after #2232), the actual length of storage_items in the advice map equals num_items. The separate advice map entry for the storage item count is therefore redundant.

Removed:

  • Advice map entry inserting num_storage_items in tx_args.rs
  • Lookup and validation of num_storage_items in kernel_process.rs
  • Related test assertion in test_note.rs

Closes #2317

@Farukest Farukest force-pushed the feat/issue-2317-remove-storage-item-count branch from 3352621 to aa61bc2 Compare January 31, 2026 16:53
Since note storage items are no longer padded (after PR 0xMiden#2232), the
actual length of storage_items in the advice map equals num_items.
The separate advice map entry for storage item count is therefore
redundant.

This change removes:
- The advice map entry inserting num_storage_items (tx_args.rs)
- The lookup and validation of num_storage_items (kernel_process.rs)
- The test assertion for the removed advice map entry (test_note.rs)

Closes 0xMiden#2317
@Farukest Farukest force-pushed the feat/issue-2317-remove-storage-item-count branch from aa61bc2 to 440aaab Compare January 31, 2026 17:25
Copy link
Copy Markdown
Contributor

@PhilippGackstatter PhilippGackstatter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@PhilippGackstatter PhilippGackstatter merged commit fa9631c into 0xMiden:next Feb 2, 2026
15 checks passed
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Mar 9, 2026
…den#2376)

Since note storage items are no longer padded (after PR 0xMiden#2232), the
actual length of storage_items in the advice map equals num_items.
The separate advice map entry for storage item count is therefore
redundant.

This change removes:
- The advice map entry inserting num_storage_items (tx_args.rs)
- The lookup and validation of num_storage_items (kernel_process.rs)
- The test assertion for the removed advice map entry (test_note.rs)

Closes 0xMiden#2317

Co-authored-by: Philipp Gackstatter <PhilippGackstatter@users.noreply.github.com>
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.

Remove number of note storage items advice map entry

2 participants