-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: forge-inspect script for contracts-core #344
Conversation
odyslam
commented
Jun 14, 2022
•
edited
Loading
edited
@prestwich addressed your comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it easy to adapt this to work for Bridge as well? Those are the other contracts that we need to upgrade periodically
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a CI step that generates these and fails CI if it generates a different file
@@ -31,7 +31,8 @@ | |||
"link:node_modules": "ln -s ../../node_modules", | |||
"snapshot": "forge clean && FOUNDRY_PROFILE=core forge snapshot", | |||
"snapshot:check": "forge clean && FOUNDRY_PROFILE=core forge snapshot --check", | |||
"gen-proof": "../../scripts/accumulator-cli" | |||
"gen-proof": "../../scripts/accumulator-cli", | |||
"gen-sl": "scripts/storage-inspect.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be added to the build
script
Yeah. Let me add the bridge contracts as well and finally make an addition to the GitHub actions? We could have something like what was mentioned above. The test will fail if the storage has changed so the engineer has to explicitly acknowledge the change, create and commit the new storage layout so that the test doesn't fail, and then merge. What do you say? |
Closing in favour of #403 |