Skip to content

Dev#14

Merged
dadadave80 merged 27 commits intomainfrom
dev
Oct 12, 2025
Merged

Dev#14
dadadave80 merged 27 commits intomainfrom
dev

Conversation

@dadadave80
Copy link
Owner

No description provided.

Sort imports
Make testSelectorsAreComplete a view function
Use the interfaces directly to assert the diamond supports them
Refactored internal diamond cut functions to accept DiamondStorage as a parameter and replaced private helper functions with internal ones for better code reuse. Added new calldata-based diamond cut functions to support FacetCut[] calldata and bytes calldata, improving gas efficiency and flexibility. Enhanced initialization error handling and updated selector/facet position helpers for consistency.
Simplifies imports and restructures the Diamond contract to use internal delegate and implementation functions. The fallback and receive functions are now virtual, and diamond cut logic is encapsulated in an internal method. The contract initialization is updated to accept facet cuts, init address, and calldata directly, improving modularity and extensibility.
Replaces the call to LibDiamond._diamondCut with LibDiamond._diamondCutCalldata in DiamondCutFacet. This change likely reflects an update in the library's API or a need to use calldata-specific logic.
Updated foundry.toml to set optimizer_runs to 999,999 and explicitly disabled via_ir. These changes may improve contract optimization and control IR compilation behavior.
Updates the GitHub Actions workflow to install the nightly version of Foundry using the foundry-toolchain action. Ensures tests run against the latest nightly build.
@dadadave80 dadadave80 merged commit e4d125f into main Oct 12, 2025
2 checks passed
@dadadave80 dadadave80 deleted the dev branch October 12, 2025 13:41
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