Skip to content

interop: recorrect the logic between CrossL2Inbox and op-supervisor #1603

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/interop/reading-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sequenceDiagram

3. The attestation verifier calls `validateMessage()` on the `CrossL2Inbox` contract, passing the attestation identifier and a hash of the event data.

4. The [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract interacts with the [`OP-Supervisor`](/interop/op-supervisor) service to check if the specified log exists on the source chain.
4. The [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract will be called only after the [`OP-Supervisor`](/interop/op-supervisor) service to check if the specified log exists on the source chain.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Clarify wording and grammar for step 4.

The current phrasing is awkward and may confuse readers about the sequence. A clearer rewrite:

-4.  The [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract will be called only after the [`OP-Supervisor`](/interop/op-supervisor) service to check if the specified log exists on the source chain.
+4.  The [`OP-Supervisor`](/interop/op-supervisor) service checks that the specified log exists on the source chain before the [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract is invoked.

Also, please update the sequence diagram (lines 96–100) to reflect this ordering change and maintain consistency.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
4. The [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract will be called only after the [`OP-Supervisor`](/interop/op-supervisor) service to check if the specified log exists on the source chain.
4. The [`OP-Supervisor`](/interop/op-supervisor) service checks that the specified log exists on the source chain before the [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) contract is invoked.


5. The `OP-Supervisor` confirms the validity of the log to the `CrossL2Inbox` contract.

Expand Down