diff --git a/internal/blockchain/ethereum/besu/genesis.go b/internal/blockchain/ethereum/besu/genesis.go index f3418ed1..2f14b528 100644 --- a/internal/blockchain/ethereum/besu/genesis.go +++ b/internal/blockchain/ethereum/besu/genesis.go @@ -79,7 +79,7 @@ func CreateGenesis(addresses []string, blockPeriod int, chainID int64) *Genesis alloc[address] = &Alloc{ Balance: "0x200000000000000000000000000000000000000000000000000000000000000", } - extraData += extraData + extraData += address } extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0") return &Genesis{ diff --git a/internal/blockchain/ethereum/besu/genesis_test.go b/internal/blockchain/ethereum/besu/genesis_test.go index 982be07c..7530ea0d 100644 --- a/internal/blockchain/ethereum/besu/genesis_test.go +++ b/internal/blockchain/ethereum/besu/genesis_test.go @@ -48,7 +48,7 @@ func TestCreateGenesis(t *testing.T) { alloc[address] = &Alloc{ Balance: "0x200000000000000000000000000000000000000000000000000000000000000", } - extraData += extraData + extraData += address } extraData = strings.ReplaceAll(fmt.Sprintf("%-236s", extraData), " ", "0") expectedGenesis := &Genesis{