Skip to content

chore: remove create_mock_notes#2236

Merged
mmagician merged 3 commits intopgackst-note-tag-refactorfrom
pgackst-remove-create-mock-notes
Jan 8, 2026
Merged

chore: remove create_mock_notes#2236
mmagician merged 3 commits intopgackst-note-tag-refactorfrom
pgackst-remove-create-mock-notes

Conversation

@PhilippGackstatter
Copy link
Copy Markdown
Contributor

To simplify #2109, this removes the low-level create_mock_notes helper procedure which isn't really needed anymore and is painful to maintain. See the issue for more details.

Also renames the util::create_random_note to a more apt util::create_default_note.

closes #1845

@PhilippGackstatter PhilippGackstatter added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jan 7, 2026
Copy link
Copy Markdown
Collaborator

@mmagician mmagician left a comment

Choose a reason for hiding this comment

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

I didn't notice before that we had tests writing directly to OUTPUT_NOTE_SECTION in memory, rather than creating actual notes. Thanks for addressing this issue (and catching it in the first place!)

@mmagician mmagician merged commit e9e8c22 into pgackst-note-tag-refactor Jan 8, 2026
16 of 17 checks passed
@mmagician mmagician deleted the pgackst-remove-create-mock-notes branch January 8, 2026 09:31
PhilippGackstatter added a commit that referenced this pull request Jan 15, 2026
* feat: Define `NoteTag` to wrap arbitrary `u32`

* feat: Rework note tag docs and constructors

* chore: Remove use case constructors and refactor swap tag

* feat: Remove note tag validation

* feat: Rename account ID conversion to account target

* feat: Update note tag docs

* chore: add changelog

* chore: Make `NoteMetadata::new` infallible

* chore: address review comments on docs

* chore: remove outdated note tag rules in metadata docs

* chore: remove `create_mock_notes` (#2236)

* chore: Rename `create_random_note` to `*_default_*` and add pub helper

* chore: replace create_mock_notes in test_epilogue

* chore: Remove `create_mock_notes`

---------

Co-authored-by: Bobbin Threadbare <43513081+bobbinth@users.noreply.github.com>
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Jan 15, 2026
* feat: Define `NoteTag` to wrap arbitrary `u32`

* feat: Rework note tag docs and constructors

* chore: Remove use case constructors and refactor swap tag

* feat: Remove note tag validation

* feat: Rename account ID conversion to account target

* feat: Update note tag docs

* chore: add changelog

* chore: Make `NoteMetadata::new` infallible

* chore: address review comments on docs

* chore: remove outdated note tag rules in metadata docs

* chore: remove `create_mock_notes` (0xMiden#2236)

* chore: Rename `create_random_note` to `*_default_*` and add pub helper

* chore: replace create_mock_notes in test_epilogue

* chore: Remove `create_mock_notes`

---------

Co-authored-by: Bobbin Threadbare <43513081+bobbinth@users.noreply.github.com>
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Jan 15, 2026
* feat: Define `NoteTag` to wrap arbitrary `u32`

* feat: Rework note tag docs and constructors

* chore: Remove use case constructors and refactor swap tag

* feat: Remove note tag validation

* feat: Rename account ID conversion to account target

* feat: Update note tag docs

* chore: add changelog

* chore: Make `NoteMetadata::new` infallible

* chore: address review comments on docs

* chore: remove outdated note tag rules in metadata docs

* chore: remove `create_mock_notes` (0xMiden#2236)

* chore: Rename `create_random_note` to `*_default_*` and add pub helper

* chore: replace create_mock_notes in test_epilogue

* chore: Remove `create_mock_notes`

---------

Co-authored-by: Bobbin Threadbare <43513081+bobbinth@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants