From ed9e06b1408e4c5f72c0affcf24f3e0c2aefdb6c Mon Sep 17 00:00:00 2001 From: SangIlMo Date: Wed, 24 Jul 2024 17:45:43 +0900 Subject: [PATCH] Fix testcode (not related error) --- ethclient/gethclient/gethclient_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethclient/gethclient/gethclient_test.go b/ethclient/gethclient/gethclient_test.go index 9729cfd6ce..35132069a4 100644 --- a/ethclient/gethclient/gethclient_test.go +++ b/ethclient/gethclient/gethclient_test.go @@ -20,8 +20,8 @@ import ( "bytes" "context" "encoding/json" - "errors" "math/big" + "strings" "testing" "github.com/ethereum/go-ethereum" @@ -225,7 +225,7 @@ func testAccessList(t *testing.T, client *rpc.Client) { Value: big.NewInt(1), } al, gas, vmErr, err = ec.CreateAccessList(context.Background(), msg) - if errors.Is(err, core.ErrBlobFeeCapTooLow) { + if err != nil && !strings.Contains(err.Error(), core.ErrFeeCapTooLow.Error()) { t.Fatalf("unexpected error: %v", err) } if vmErr != "" {