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"), }