Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added storage layout safety check on deployment and GHA #16

Merged
merged 6 commits into from
Mar 24, 2024

Conversation

Ramarti
Copy link

@Ramarti Ramarti commented Mar 24, 2024

Instead of using the OZ Foundry plugin deployProxy methods, which check for layout safety but are slow and require us to use only clean builds and --ffi on tests, we are going to use a different strategy:

  • Create a base contract for foundry scripts (StorageLayoutChecker.sol) that runs the OZ cli first thing on run, failing if layouts are not safe.
  • Run the OZ cli check in GHA test workflow

NOTE: I removed lib from .gitignore since we need it to install OZ plugin. Git submodules seem safe to add

@LeoHChen LeoHChen merged commit e32615b into storyprotocol:main Mar 24, 2024
2 checks passed
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.

3 participants