Skip to content

Fix multi-digit SemVer major parsing in SemVerMixin#1627

Open
sashaodessa wants to merge 1 commit intoLayr-Labs:mainfrom
sashaodessa:main
Open

Fix multi-digit SemVer major parsing in SemVerMixin#1627
sashaodessa wants to merge 1 commit intoLayr-Labs:mainfrom
sashaodessa:main

Conversation

@sashaodessa
Copy link
Copy Markdown

Description

  • Correctly returns the substring before the first dot to handle multi-digit majors (e.g., “10.2.3”).

  • Updates _majorVersion() in src/contracts/mixins/SemVerMixin.sol.

  • Why: Aligns with SemVer 2.0.0; prevents misreporting major versions ≥ 10.

  • Test: Build and run existing tests:

foundryup && forge build && forge test

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.

1 participant