Skip to content

chore: fund accounts in L2 genesis #103

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

Merged
merged 1 commit into from
Apr 21, 2025

Conversation

danyalprout
Copy link
Contributor

Description

Prefund accounts on the OPStack L2. This includes the mev-flood default account which allows testing op-rbuilder without having to bridge funds.

// Update the allocs to include the same prefunded accounts as the L1 genesis.
allocs := make(map[string]interface{})
input["alloc"] = allocs
for _, privStr := range prefundedAccounts {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could hardcode these into the genesis.json if you prefer. Felt a bit neater to duplicate it here so the addresses we fund don't get out of sync.

Copy link
Contributor

@therustmonk therustmonk left a comment

Choose a reason for hiding this comment

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

Thank you! It works, tested with: flashbots/rbuilder#562

@ferranbt ferranbt merged commit 0b1dc97 into flashbots:main Apr 21, 2025
7 checks passed
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.

4 participants