From 9fcb8f6a37a2bbc559fc5824f082d0550f5b7ef1 Mon Sep 17 00:00:00 2001 From: Daniel Liu <139250065@qq.com> Date: Thu, 28 Aug 2025 18:55:20 +0800 Subject: [PATCH] ethclient: replace noarg fmt.Errorf with errors.New #27334 (#1385) --- ethclient/ethclient_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go index 606dd1131b..fa2dabf2b9 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -17,7 +17,7 @@ package ethclient import ( - "fmt" + "errors" "math/big" "reflect" "testing" @@ -42,7 +42,7 @@ var ( ) func TestToFilterArg(t *testing.T) { - blockHashErr := fmt.Errorf("cannot specify both BlockHash and FromBlock/ToBlock") + blockHashErr := errors.New("cannot specify both BlockHash and FromBlock/ToBlock") addresses := []common.Address{ common.HexToAddress("0xD36722ADeC3EdCB29c8e7b5a47f352D701393462"), }