Fix testcode (not related error)

pull/30194/head
SangIlMo 2 months ago
parent 2b7d9fcb80
commit ed9e06b140
  1. 4
      ethclient/gethclient/gethclient_test.go

@ -20,8 +20,8 @@ import (
"bytes" "bytes"
"context" "context"
"encoding/json" "encoding/json"
"errors"
"math/big" "math/big"
"strings"
"testing" "testing"
"github.com/ethereum/go-ethereum" "github.com/ethereum/go-ethereum"
@ -225,7 +225,7 @@ func testAccessList(t *testing.T, client *rpc.Client) {
Value: big.NewInt(1), Value: big.NewInt(1),
} }
al, gas, vmErr, err = ec.CreateAccessList(context.Background(), msg) 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) t.Fatalf("unexpected error: %v", err)
} }
if vmErr != "" { if vmErr != "" {

Loading…
Cancel
Save