-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
op-e2e: Convert most FaultDisputeGame read operations to use custom contract bindings #10533
Conversation
6bdf7fb
to
5adee4b
Compare
# Conflicts: # op-e2e/e2eutils/disputegame/helper.go # op-e2e/e2eutils/disputegame/output_cannon_helper.go # op-e2e/e2eutils/disputegame/output_game_helper.go
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10533 +/- ##
============================================
+ Coverage 42.36% 81.92% +39.55%
============================================
Files 73 10 -63
Lines 4836 1079 -3757
Branches 766 0 -766
============================================
- Hits 2049 884 -1165
+ Misses 2680 163 -2517
+ Partials 107 32 -75
Flags with carried forward coverage won't be shown. Click here to find out more. |
WalkthroughWalkthroughThe recent updates primarily involve refactoring and type adjustments across various files related to the Fault Dispute Game in the Ethereum Optimism project. Key changes include modifying struct fields, function parameters, and variable assignments to align with new contract structures and types. Additionally, imports have been updated to reflect these changes, and some logic has been refined to enhance error handling and data retrieval mechanisms. Changes
Recent Review DetailsConfiguration used: .coderabbit.yml Files selected for processing (8)
Additional comments not posted (5)
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 (
|
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.
Actionable comments posted: 10
Out of diff range and nitpick comments (2)
op-e2e/e2eutils/disputegame/output_alphabet_helper.go (1)
Line range hint
38-47
: Ensure proper error handling inCreateHonestActor
.The method
CreateHonestActor
retrieves block ranges and initializes various components. It's crucial to ensure that all potential errors from blockchain interactions are handled appropriately to prevent runtime panics and ensure robustness.op-e2e/e2eutils/disputegame/output_game_helper.go (1)
166-167
: Validate output root with more comprehensive checks.While the current validation checks if the output root is correct, consider adding more detailed checks or logs to help debug issues more effectively.
Description
Convert nearly all read usages of the generated
FaultDisputeGame
bindings in op-e2e to the custom contract bindings.Creating and sending transactions still uses the generated bindings - we need an op-e2e version of TxManager to handle gas estimation before they can be converted. There's a couple of read calls that aren't currently exposed on the custom bindings which still use the generated ones.
This will conflict with #10520 which is more important, so let's get that one merged first.
Builds on #10532