Skip to content

Conversation

jtfirek
Copy link
Contributor

@jtfirek jtfirek commented May 10, 2024

Description
I believe that the transaction hash that is passed into the proveMessage() is the corresponding L2 transaction. I don't think there is any L1 transactions corresponding to this withdraw yet.

fix: documentation error
@jtfirek jtfirek requested a review from a team as a code owner May 10, 2024 20:02
@jtfirek jtfirek requested a review from a team May 10, 2024 20:02
Copy link
Contributor

coderabbitai bot commented May 10, 2024

Walkthrough

The update involves a significant change in the SDK's CrossDomainMessenger.proveMessage() function, where the parameter has been shifted from the hash of an L1 message to the hash of an L2 message. This adjustment aligns the function with updated messaging protocols between Layer 1 and Layer 2 networks, enhancing interaction and data verification processes.

Changes

File Path Change Summary
.../protocol/withdrawal-flow.mdx Updated the reference from an L1 message to an L2 message in CrossDomainMessenger.proveMessage() call.

Recent Review Details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 4090a76 and 458ddc8.
Files selected for processing (1)
  • pages/stack/protocol/withdrawal-flow.mdx (1 hunks)
Additional Context Used
LanguageTool (13)
pages/stack/protocol/withdrawal-flow.mdx (13)

Near line 29: Loose punctuation mark.
Context: ...pts three parameters: * _target, target address on L1. * `_message...


Near line 30: Loose punctuation mark.
Context: ...target address on L1. * _message, the L1 transaction's calldata, formatte...


Near line 31: Loose punctuation mark.
Context: ...e target address. * _minGasLimit, The minimum amount of gas that the with...


Near line 31: Consider a shorter alternative to avoid wordiness.
Context: ... re-attempting with a higher gas limit. In order to account for the gas consumed in the `L1...


Near line 55: Consider adding a comma after ‘Typically’ for more clarity.
Context: ... that the message hash really is in L2. Typically this is done [by the SDK](https://sdk.o...


Near line 96: Unpaired symbol: ‘[’ seems to be missing
Context: ...ify the proof has already been submitted](https://github.com/ethereum-optimism/op...


Near line 97: Unpaired symbol: ‘[’ seems to be missing
Context: ...ault challenge period has already passed](https://github.com/ethereum-optimism/op...


Near line 98: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...OptimismPortal.sol#L357-L364). * [Verify that the proof applies to the current o...


Near line 98: Unpaired symbol: ‘[’ seems to be missing
Context: ... changed by the fault challenge process)](https://github.com/ethereum-optimism/op...


Near line 99: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...OptimismPortal.sol#L366-L378). * [Verify that the current output root for that b...


Near line 99: Unpaired symbol: ‘[’ seems to be missing
Context: ...at the fault challenge period has passed](https://github.com/ethereum-optimism/op...


Near line 100: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...OptimismPortal.sol#L380-L384). * [Verify that the transaction has not been final...


Near line 100: Unpaired symbol: ‘[’ seems to be missing
Context: ...nalized before to prevent replay attacks](https://github.com/ethereum-optimism/op...

Path-based Instructions (1)
pages/stack/protocol/withdrawal-flow.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "

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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented May 10, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 458ddc8
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/663e7d508358c70008936a6c
😎 Deploy Preview https://deploy-preview-682--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Out of diff range and nitpick comments (3)
pages/stack/protocol/withdrawal-flow.mdx (3)

Line range hint 29-31: Consider revising the list format to ensure consistency and clarity.

- *   `_target`, target address on L1.
- *   `_message`, the L1 transaction's calldata, formatted as per the [ABI](https://docs.soliditylang.org/en/v0.8.19/abi-spec.html) of the target address.
- *   `_minGasLimit`, The minimum amount of gas that the withdrawal finalizing transaction can provide to the withdrawal transaction.
+ *   `_target`: Target address on L1.
+ *   `_message`: The L1 transaction's calldata, formatted as per the [ABI](https://docs.soliditylang.org/en/v0.8.19/abi-spec.html) of the target address.
+ *   `_minGasLimit`: The minimum amount of gas that the withdrawal finalizing transaction can provide to the withdrawal transaction.

Line range hint 31-31: Consider rephrasing to avoid wordiness.

- In order to account for the gas consumed in the `L1CrossDomainMessenger.relayMessage` function's execution, extra gas will be added on top of the `_minGasLimit` value by the `CrossDomainMessenger.baseGas` function when `sendMessage` is called on L2.
+ To account for the gas consumed in the `L1CrossDomainMessenger.relayMessage` function's execution, extra gas will be added to the `_minGasLimit` value by the `CrossDomainMessenger.baseGas` function when `sendMessage` is called on L2.

Line range hint 55-55: Add a comma after 'Typically' for better readability.

- Typically this is done [by the SDK](https://sdk.optimism.io/classes/crosschainmessenger#proveMessage-2).
+ Typically, this is done [by the SDK](https://sdk.optimism.io/classes/crosschainmessenger#proveMessage-2).

@jtfirek
Copy link
Contributor Author

jtfirek commented May 14, 2024

@smartcontracts What do i need to do to get this merged? Even though it is small, contributing to OP would be a cool thing for me

@cpengilly cpengilly merged commit d7fd352 into ethereum-optimism:main May 14, 2024
cpengilly added a commit that referenced this pull request May 14, 2024
commit d7fd352
Merge: 44b27dd 458ddc8
Author: cpengilly <[email protected]>
Date:   Tue May 14 13:03:11 2024 -0700

    Merge pull request #682 from jtfirek/patch-1

    Update withdrawal-flow.mdx

commit 458ddc8
Author: Jacob T Firek <[email protected]>
Date:   Fri May 10 14:56:10 2024 -0500

    Update withdrawal-flow.mdx

    fix: documentation error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants