Skip to content

Commit ed9e06b

Browse files
committed
Fix testcode (not related error)
1 parent 2b7d9fc commit ed9e06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethclient/gethclient/gethclient_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"bytes"
2121
"context"
2222
"encoding/json"
23-
"errors"
2423
"math/big"
24+
"strings"
2525
"testing"
2626

2727
"github.com/ethereum/go-ethereum"
@@ -225,7 +225,7 @@ func testAccessList(t *testing.T, client *rpc.Client) {
225225
Value: big.NewInt(1),
226226
}
227227
al, gas, vmErr, err = ec.CreateAccessList(context.Background(), msg)
228-
if errors.Is(err, core.ErrBlobFeeCapTooLow) {
228+
if err != nil && !strings.Contains(err.Error(), core.ErrFeeCapTooLow.Error()) {
229229
t.Fatalf("unexpected error: %v", err)
230230
}
231231
if vmErr != "" {

0 commit comments

Comments
 (0)