dispute-game: Sanity check disputed claim index#10520
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10520 +/- ##
============================================
- Coverage 42.35% 29.22% -13.13%
============================================
Files 73 31 -42
Lines 4838 2898 -1940
Branches 766 614 -152
============================================
- Hits 2049 847 -1202
+ Misses 2681 1976 -705
+ Partials 108 75 -33
Flags with carried forward coverage won't be shown. Click here to find out more. |
WalkthroughWalkthroughThe updates focus on enhancing claim handling in dispute games within the Changes
Recent Review DetailsConfiguration used: .coderabbit.yml Files ignored due to path filters (5)
Files selected for processing (23)
Files not summarized due to errors (1)
Files skipped from review as they are similar to previous changes (22)
Additional comments not posted (10)
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 (
|
Also moves calculation of the required bond into the contract bindings so the returned TxCandidate is ready to send.
* dispute-game: Sanity check disputed claim index * Fix tests * update snapshots * fix docs * move param * op-challenger: Supply parent value when performing moves Also moves calculation of the required bond into the contract bindings so the returned TxCandidate is ready to send. * op-challenger: Add backwards compatibility with v1.1.1 * op-e2e: Update e2e for new FaultDisputeGame ABI --------- Co-authored-by: Adrian Sutton <adrian@oplabs.co>
The
IFaultDisputeGame.moveinterface has been modified to accept a disputedClaimhash. This allows the FDG to sanity check the disputed claim hash against its corresponding index in theclaimDataarray.This improves the UX of the interface to guard against possible reorgs when a challenger attempts to move against a reorg'd claim at an incorrect
claimDataindex.