Skip to content

Conversation

@maoueh
Copy link
Contributor

@maoueh maoueh commented Dec 2, 2025

Add possibility to add more prefunded accounts to the L1 generated genesis by accepting a repeated []string flag --prefunded-account which accepts the same format (private key in hex) as the static prefunded accounts.

I debated about putting the prefunded-account flag on the L1 recipe directly, to scope it just to this. Maybe it would be preferable, let me know what do you think.

Add possibility to add more prefunded accounts to the L1 generated genesis by accepting a repeated `[]string` flag `--prefunded-account` which accepts the same format (private key in hex) as the static prefunded accounts.

I debated about putting the `prefunded-account` flag on the L1 recipe directly, to scope it just to this. Maybe it would be preferable, let me know what do you think.
Copilot AI review requested due to automatic review settings December 2, 2025 16:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds the ability to specify additional prefunded accounts for L1 and L2 genesis configurations through a new --prefunded-account CLI flag. The flag accepts private keys in hexadecimal format and can be specified multiple times to add multiple accounts.

Key changes:

  • New --prefunded-account flag that accepts private keys and can be repeated
  • Refactored static prefunded accounts into a separate variable positioned closer to usage
  • Additional prefunded accounts are combined with the existing 10 static accounts in the genesis

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
playground/artifacts.go Added prefundedAccounts field to ArtifactsBuilder, new setter method PrefundedAccounts(), helper method getPrefundedAccounts() to combine static and user-provided accounts, and moved static accounts definition for better code organization
main.go Added prefundedAccounts global variable and --prefunded-account CLI flag, integrated the flag value with the artifacts builder

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ferranbt
Copy link
Collaborator

ferranbt commented Dec 5, 2025

LGTM!

@maoueh
Copy link
Contributor Author

maoueh commented Dec 5, 2025

@ferranbt Let me know how you want to proceed, will be happy to work any you like for this.

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