Skip to content
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

feat: op-program --network flag accepts number as chainid #12503

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

qizhou
Copy link
Contributor

@qizhou qizhou commented Oct 17, 2024

Description

This will allow the op-program to use the embedded custom rollup config, where the chainid of the custom rollup is passed via --network flag. This way, we can now verify op-program in the independent process mode.

Tests

Run devnet locally, then pass make verify-devnet under the op-program folder.

Additional context

Metadata

Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

Generally looks good. There's a test failing because we no longer provide a clear error message when the network name is unknown. It would be good to get that error back. And would be good to avoid the duplication of parsing the rollup.Config.

op-program/host/config/config.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@ajsutton ajsutton enabled auto-merge October 20, 2024 21:08
@ajsutton ajsutton added this pull request to the merge queue Oct 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 20, 2024
@ajsutton ajsutton added this pull request to the merge queue Oct 20, 2024
Merged via the queue into ethereum-optimism:develop with commit a0aa656 Oct 20, 2024
47 checks passed
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
…ptimism#12503)

* feat: op-program --network flag accepts number as chainid

* put common parse code into rollup.Config struct

* address comments

---------

Co-authored-by: Qi Zhou <[email protected]>
ajsutton pushed a commit that referenced this pull request Dec 1, 2024
* feat: op-program --network flag accepts number as chainid

* put common parse code into rollup.Config struct

* address comments

---------

Co-authored-by: Qi Zhou <[email protected]>
ajsutton pushed a commit that referenced this pull request Dec 8, 2024
* feat: op-program --network flag accepts number as chainid

* put common parse code into rollup.Config struct

* address comments

---------

Co-authored-by: Qi Zhou <[email protected]>
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.

2 participants