From 560374811c89f8c21313f34befa3bbdc5fbc257f Mon Sep 17 00:00:00 2001 From: klim0v Date: Mon, 15 Sep 2025 15:49:31 +0800 Subject: [PATCH] tiny --- beacon/params/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/beacon/params/config.go b/beacon/params/config.go index 4ca204dd38..c1c1910e1b 100644 --- a/beacon/params/config.go +++ b/beacon/params/config.go @@ -107,8 +107,7 @@ func (c *ChainConfig) LoadForks(file []byte) error { name := key[:len(key)-len("_FORK_VERSION")] switch version := value.(type) { case int: - versions[name] = make([]byte, 4) - big.NewInt(int64(version)).FillBytes(versions[name]) + versions[name] = big.NewInt(int64(version)).FillBytes(make([]byte, 4)) case string: v, err := hexutil.Decode(version) if err != nil {