mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
typo
This commit is contained in:
parent
c1b4526736
commit
f87c41c01d
1 changed files with 2 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"os"
|
||||
"slices"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/beacon/merkle"
|
||||
|
|
@ -122,7 +123,7 @@ func (c *ChainConfig) LoadForks(file []byte) error {
|
|||
case int:
|
||||
epochs[name] = uint64(epoch)
|
||||
case string:
|
||||
v, err := hexutil.DecodeUint64(epoch)
|
||||
v, err := strconv.ParseUint(epoch, 10, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse epoch number %q in beacon chain config file: %v", epoch, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue