-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
contracts-bedrock: cleanup predeploys solidity test #8933
Conversation
WalkthroughWalkthroughThe recent update involves simplifying the logic for checking predeploy proxy configurations in a Go command, removing parallel checks for a more straightforward approach. In Solidity testing, new internal functions have been introduced to handle the computation of predeploy addresses, verification of predeploy status, and proxy determination. Additionally, a test function has been enhanced to verify predeploy settings and admin configurations. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #8933 +/- ##
===========================================
- Coverage 34.70% 25.80% -8.91%
===========================================
Files 165 117 -48
Lines 7123 4841 -2282
Branches 1208 1057 -151
===========================================
- Hits 2472 1249 -1223
+ Misses 4499 3486 -1013
+ Partials 152 106 -46
Flags with carried forward coverage won't be shown. Click here to find out more. |
cfd3792
to
9ef59df
Compare
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.
lgtm!
This is a prereq of #8942. This will help to remove the concept of `check-l2` to help reduce the amount of diff a developer needs to do when making changes to the solidity code. Ideally, a solidity dev needs to touch 0 code in any other language (besides bash ffi lolz). After this PR as well as: - #8933 - #8911 the functionality of `check-l2` is now completely in solidity. Note that we are now calling the non system contracts "preinstalls" instead of "predeploys" to denote that they do not live in the predeploy namespace and are not critical to the functionality of the system. They are set at deterministic addresses.
Contributors to the smart contracts have way too many steps to get their PR over the line. This migrates some of the `check-l2` script to solidity. I believe that we can fully delete `check-l2` but want to follow up in an additional PR to ensure that we have the same functionality. Completely deleting `check-l2` was unblocked by #8911. The functionality that is added to the solidity here was removed from the `check-l2` script.
9ef59df
to
06cc8a6
Compare
This is a prereq of #8942. This will help to remove the concept of `check-l2` to help reduce the amount of diff a developer needs to do when making changes to the solidity code. Ideally, a solidity dev needs to touch 0 code in any other language (besides bash ffi lolz). After this PR as well as: - #8933 - #8911 the functionality of `check-l2` is now completely in solidity. Note that we are now calling the non system contracts "preinstalls" instead of "predeploys" to denote that they do not live in the predeploy namespace and are not critical to the functionality of the system. They are set at deterministic addresses.
* contracts-bedrock: cleanup predeploys solidity test Contributors to the smart contracts have way too many steps to get their PR over the line. This migrates some of the `check-l2` script to solidity. I believe that we can fully delete `check-l2` but want to follow up in an additional PR to ensure that we have the same functionality. Completely deleting `check-l2` was unblocked by #8911. The functionality that is added to the solidity here was removed from the `check-l2` script. * op-chain-ops: remove dead code * op-chain-ops: fix build issue
* contracts-bedrock: add tests for preinstalls This is a prereq of #8942. This will help to remove the concept of `check-l2` to help reduce the amount of diff a developer needs to do when making changes to the solidity code. Ideally, a solidity dev needs to touch 0 code in any other language (besides bash ffi lolz). After this PR as well as: - #8933 - #8911 the functionality of `check-l2` is now completely in solidity. Note that we are now calling the non system contracts "preinstalls" instead of "predeploys" to denote that they do not live in the predeploy namespace and are not critical to the functionality of the system. They are set at deterministic addresses. * contracts-bedrock: lint * contracts-bedrock: lint
Description
Contributors to the smart contracts have way too many steps
to get their PR over the line. This migrates some of the
check-l2
script to solidity. I believe that we can fully delete
check-l2
but want to follow up in an additional PR to ensure that we have the
same functionality. Completely deleting
check-l2
was unblocked by#8911.
The functionality that is added to the solidity here was removed from
the
check-l2
script.