ethclient: replace noarg fmt.Errorf with errors.New #27334 (#1385)

This commit is contained in:
Daniel Liu 2025-08-28 18:55:20 +08:00 committed by GitHub
parent f49d90eb69
commit 9fcb8f6a37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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