Skip to content

[N-03] M3 Audit - #1744

Merged
ericnordelo merged 3 commits into
mainfrom
fix/m3-audit-N-03
Aug 25, 2026
Merged

[N-03] M3 Audit#1744
ericnordelo merged 3 commits into
mainfrom
fix/m3-audit-N-03

Conversation

@ericnordelo

@ericnordelo ericnordelo commented Aug 7, 2026

Copy link
Copy Markdown
Member

Clarifies the type-hash macro documentation, including SNIP-12 collections and the tuple-member extension.

Summary by CodeRabbit

  • Documentation
    • Clarified documentation for SNIP-12 type categories.
    • Improved explanations of collection types and tuple extensions.
    • Clarified that type-name methods provide macro-facing names.

@ericnordelo ericnordelo changed the title fix: N-03 [N-03] M3 Audit Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a5d79917-6f1a-46e5-88a5-71463fa3f954

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

The pull request updates documentation in the type hash module. It clarifies SNIP-12 type categories, tuple extensions, user-defined types, and macro-facing type names. Runtime behavior and public declarations remain unchanged.

Changes

Type Hash Documentation

Layer / File(s) Summary
Type category documentation
packages/macros/src/attribute/type_hash/types.rs
Documentation comments clarify SNIP-12 collections, enum parameter lists, tuple-member extensions, user-defined types, and macro-facing type names.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

I’m a rabbit with a careful pen,
Clarifying types for macros again.
SNIP-12 paths now read bright,
Tuples stand clear in the light.
No code hops, just docs take flight.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title identifies the N-03 M3 audit, which relates to the documentation changes, but it does not describe the specific SNIP-12 documentation updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/m3-audit-N-03

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/macros/src/attribute/type_hash/types.rs`:
- Around line 1-19: Update the module documentation near the “Types recognized
by the type hash derive macro” heading so SNIP-12 lists only basic, preset, and
user-defined types as its type categories; describe arrays and parenthesized
enum parameter lists separately, while retaining the note that tuple-typed
members are an OpenZeppelin-specific extension.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 52fddd15-9dbb-4477-97a0-b58baab46751

📥 Commits

Reviewing files that changed from the base of the PR and between 619acaa and 8c15494.

📒 Files selected for processing (1)
  • packages/macros/src/attribute/type_hash/types.rs

Comment thread packages/macros/src/attribute/type_hash/types.rs
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bidzyyys bidzyyys linked an issue Aug 7, 2026 that may be closed by this pull request

@immrsd immrsd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ericnordelo
ericnordelo merged commit 37ba01b into main Aug 25, 2026
13 checks passed
ericnordelo added a commit that referenced this pull request Aug 26, 2026
* [N-01] M3 Audit (#1731)

* fix: N-01

* feat: apply review updates

(cherry picked from commit 13b7454)

* fix: L-04 (#1732)

(cherry picked from commit fc158d4)

* fix: L-01 (#1733)

(cherry picked from commit bd4e0e2)

* [L-03] M3 Audit (#1734)

* fix: L-04

* fix: L-01

* fix: L-03

* feat: apply review updates

* fix: L-03

* feat: apply auditors feedback

(cherry picked from commit 62e17d4)

* fix: L-02 (#1743)

(cherry picked from commit edd76a9)

* [L-06] M3 Audit (#1736)

* fix: L-06

* feat: apply review updates

(cherry picked from commit 9a47516)

* fix: L-07 (#1737)

(cherry picked from commit 23da4ee)

* fix: L-05 (#1738)

(cherry picked from commit 00ec4c3)

* fix: L-11 (#1739)

(cherry picked from commit 9ba97df)

* fix: L-08 (#1740)

(cherry picked from commit 7b911da)

* fix: L-09 (#1741)

(cherry picked from commit 6bc3911)

* [N-03] M3 Audit (#1744)

* fix: N-03

* feat: apply review updates

* feat: apply auditors review comments

(cherry picked from commit 37ba01b)

* feat: update CHANGELOG
@ericnordelo
ericnordelo deleted the fix/m3-audit-N-03 branch August 26, 2026 09:44
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.

[N-03]: Tuple member encoding is not specified by SNIP-12

2 participants