From 70c02df8377d023bb013ef149cadd0b6132d8099 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 22 Oct 2024 18:25:25 +0700 Subject: [PATCH] fix --- graphql/graphql_test.go | 3 +-- tests/block_test_util.go | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index 6adb45a554..231170c273 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -21,14 +21,13 @@ import ( "encoding/json" "fmt" "io" + "math" "math/big" "net/http" "strings" "testing" "time" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/consensus" "github.com/ethereum/go-ethereum/consensus/beacon" diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 28f482e79c..77bf945e40 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -22,6 +22,7 @@ import ( "encoding/hex" "encoding/json" "fmt" + stdmath "math" "math/big" "os" "reflect" @@ -132,7 +133,7 @@ func (t *BlockTest) Run(snapshotter bool, scheme string, witness bool, tracer *t // if ttd is not specified, set an arbitrary huge value if gspec.Config.TerminalTotalDifficulty == nil { - gspec.Config.TerminalTotalDifficulty = big.NewInt(math.MaxInt64) + gspec.Config.TerminalTotalDifficulty = big.NewInt(stdmath.MaxInt64) } triedb := triedb.NewDatabase(db, tconf) gblock, err := gspec.Commit(db, triedb)