From 25f8f81f6713c3f487e4c211e3b09c6888431cbf Mon Sep 17 00:00:00 2001 From: 0xbeny <55846654+0xbeny@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:38:29 +0000 Subject: [PATCH] core: refactor DeveloperGenesisBlock --- core/genesis.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index ce2a26f3ae..2184393b3d 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -593,11 +593,10 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis { common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing common.BytesToAddress([]byte{9}): {Balance: big.NewInt(1)}, // BLAKE2b + // Pre-deploy EIP-4788 system contract + params.BeaconRootsAddress: types.Account{Code: params.BeaconRootsCode}, }, } - // Pre-deploy EIP-4788 system contract - genesis.Alloc[params.BeaconRootsAddress] = types.Account{Code: params.BeaconRootsCode} - if faucet != nil { genesis.Alloc[*faucet] = types.Account{Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))} }