We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d314a26 commit 0b1dc97Copy full SHA for 0b1dc97
internal/artifacts.go
@@ -276,6 +276,21 @@ func (b *ArtifactsBuilder) Build() (*Artifacts, error) {
276
}
277
278
279
+ // Update the allocs to include the same prefunded accounts as the L1 genesis.
280
+ allocs := make(map[string]interface{})
281
+ input["alloc"] = allocs
282
+ for _, privStr := range prefundedAccounts {
283
+ priv, err := getPrivKey(privStr)
284
+ if err != nil {
285
+ return nil, err
286
+ }
287
+ addr := ecrypto.PubkeyToAddress(priv.PublicKey)
288
+ allocs[addr.String()] = map[string]interface{}{
289
+ "balance": "0x10000000000000000000000",
290
+ "nonce": "0x1",
291
292
293
+
294
newOpGenesis, err := overrideJSON(opGenesis, input)
295
if err != nil {
296
return nil, err
0 commit comments