Skip to content

Commit 4cba224

Browse files
s1naqianhh
authored andcommitted
genesis: fix dev mode alloc (#30460)
Balance being null causes `getGenesisState` to fail as the balance field is required in json marshaling of an account.
1 parent 742efd4 commit 4cba224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis {
651651
// Pre-deploy EIP-4788 system contract
652652
params.BeaconRootsAddress: {Nonce: 1, Code: params.BeaconRootsCode, Balance: common.Big0},
653653
// Pre-deploy EIP-2935 history contract.
654-
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode},
654+
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0},
655655
},
656656
}
657657
if faucet != nil {

0 commit comments

Comments
 (0)