Skip to content

Commit

Permalink
genesis: fix dev mode alloc (#30460)
Browse files Browse the repository at this point in the history
Balance being null causes `getGenesisState` to fail as the balance field
is required in json marshaling of an account.
  • Loading branch information
s1na committed Sep 19, 2024
1 parent af794ef commit 868d53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
// Pre-deploy EIP-4788 system contract
params.BeaconRootsAddress: {Nonce: 1, Code: params.BeaconRootsCode, Balance: common.Big0},
// Pre-deploy EIP-2935 history contract.
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode},
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0},
},
}
if faucet != nil {
Expand Down

0 comments on commit 868d53c

Please sign in to comment.