-
Notifications
You must be signed in to change notification settings - Fork 226
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
fix: Corrected undefined 'abi' to 'l2OutputOracleProxyABI' in system contracts docs #1008
Conversation
✅ Deploy Preview for docs-optimism ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
WalkthroughThe changes made in the documentation for "Using OP Mainnet System Contracts" focus on enhancing clarity and accuracy. Key modifications include updates to the import instructions for the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
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 using PR comments)
Other keywords and placeholders
Documentation and Community
|
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: 0
🧹 Outside diff range and nitpick comments (5)
pages/builders/app-developers/contracts/system-contracts.mdx (5)
Line range hint
1-1
: Adjust title case in the document title.According to the guidelines, use sentence case for H1 headers. Change the title to:
# Using OP Mainnet system contracts
This maintains proper capitalization for the proper noun "OP Mainnet".
Line range hint
7-11
: Revise language for consistency and clarity.Consider rephrasing this section to avoid personal pronouns and use more direct language:
System contracts on Ethereum (L1) and OP Mainnet (L2) are an important part of the OP Mainnet ecosystem. Developers may interact with these system contracts for various reasons, including: * Sending messages between L1 and L2 * Sending tokens between L1 and L2 * Querying information about the current [L1 data fee](/stack/transactions/fees#the-l1-data-fee) * Various other operationsThis revision maintains a consistent tone and avoids the use of "you" and "lots more".
Line range hint
13-13
: Adjust header capitalization.Change the H2 header to sentence case:
## Before you begin
This follows the guideline for using sentence case in H2 headers.
Line range hint
23-23
: Correct capitalization in header.Change the H2 header to sentence case:
## Using system contracts in Solidity
This follows the guideline for using sentence case in H2 headers and maintains proper capitalization for "Solidity".
Line range hint
62-62
: Adjust header capitalization.Change the H2 header to sentence case:
## Using system contracts in JavaScript
This follows the guideline for using sentence case in H2 headers and maintains proper capitalization for "JavaScript".
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
- pages/builders/app-developers/contracts/system-contracts.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/builders/app-developers/contracts/system-contracts.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. Avoid using all caps, italics, or bold for emphasis.
- 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).
- Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
- For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
"
🔇 Additional comments (2)
pages/builders/app-developers/contracts/system-contracts.mdx (2)
Line range hint
1-95
: Overall structure and content are well-organized and informative.The document has a clear structure with appropriate sections and subsections. The content flows logically, providing a comprehensive guide on using OP Mainnet System Contracts. The use of Markdown formatting enhances readability.
93-93
: Correct variable name used in the code example.The change from
abi
tol2OutputOracleProxyABI
addresses the issue mentioned in the PR objectives. This correction ensures that the code example will work as intended, preventing potential runtime errors.
Description
Fixed an issue in the system contracts documentation where an undefined variable
abi
was used in a code snippet. The variable has been replaced withl2OutputOracleProxyABI
, which is correctly imported and provides the necessaryABI
(Application Binary Interface) for theL2OutputOracleProxy
contract. This change ensures that the script will run correctly and interact with the contract as expected.Tests
No additional tests were added since this change only impacts a documentation code snippet. The focus was to correct a variable name to avoid runtime errors in example code.
Additional context
The previous use of
abi
would have resulted in a ReferenceError:abi
is not defined during script execution. This fix prevents that error by utilizing the already imported and appropriatel2OutputOracleProxyABI
.Metadata
Include a link to any github issues that this may close in the following form: