From 681bb58997e8dc50966a269ed44b8862f985de35 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Thu, 31 Jul 2025 00:04:43 +0800 Subject: [PATCH] core/vm: opt using strconv.FormatInt instead of fmt.Sprintf --- core/vm/eips.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/vm/eips.go b/core/vm/eips.go index 7764bd20b6..59bb710185 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -20,6 +20,7 @@ import ( "fmt" "math" "sort" + "strconv" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/tracing" @@ -63,7 +64,7 @@ func ValidEip(eipNum int) bool { func ActivateableEips() []string { var nums []string for k := range activators { - nums = append(nums, fmt.Sprintf("%d", k)) + nums = append(nums, strconv.FormatInt(int64(k), 10)) } sort.Strings(nums) return nums