ethereum-optimism / ethereum-optimism/optimism

Enhancement of Events in FaultDisputeGame.sol

Open
#11,409 3 comments 0 reactions 0 assignees View on GitHub
T-proofs
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 38m
Merged PRs (30d)
164

Description

**Is your feature request related to a problem? Please describe.**

It is really hard to find a corresponding `FaultDisputeGame` on-chain for a specific withdrawal transaction on L2. Users have to loop through all created games to find the right one.

**Describe the solution you'd like**

One way to solve this problem is to emit the `l2BlockNumber` and the `rootClaim` in the `Resolved` event, so we can use the subgraph to index all events and get the right one or we can directly query events on chain without calling the `l2BlockNumber` again.

**Additional context**

We have created this PR to resolve this issue. https://github.com/bobanetwork/boba/pull/226

Does this make sense, and is it helpful for others?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.