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

Add registry-data subcommand "bytecode" that generates a single bytecode file from hex #7488

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Sep 29, 2023

Description
This PR adds a new bytecode subcommand of the op-chain-ops/cmd/registry-data command that takes in a single hex-encoded bytecode argument, and saves it to the bytecode directory in the superchain-registry.

Example:

go run ./op-chain-ops/cmd/registry-data bytecode --bytecodes-dir=../superchain-registry/superchain/extra/bytecodes 0x6080

Tests
Tested by generating a file. Also tested using an existing bytecode from a genesis.json file to ensure the logic is the same.

Additional context
One of the comments in ethereum-optimism/op-geth/pull/126 was to store the bytecode for the predeploy in the superchain registry repo.

@mdehoog mdehoog requested a review from a team as a code owner September 29, 2023 23:47
@mdehoog mdehoog requested a review from protolambda September 29, 2023 23:47
@mergify mergify bot added the A-op-chain-ops Area: op-chain-ops label Sep 29, 2023
@protolambda protolambda added this pull request to the merge queue Oct 3, 2023
@mergify
Copy link
Contributor

mergify bot commented Oct 3, 2023

This PR has been added to the merge queue, and will be merged soon.

@mergify mergify bot added the S-on-merge-train Status: This PR is in the merge queue label Oct 3, 2023
Merged via the queue into ethereum-optimism:develop with commit 7c49bb3 Oct 3, 2023
4 of 6 checks passed
@mergify mergify bot removed the S-on-merge-train Status: This PR is in the merge queue label Oct 3, 2023
@mdehoog mdehoog deleted the michael/registry-data-bytecode-cmd branch October 4, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-chain-ops Area: op-chain-ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants