Fix testcode (not related error)

This commit is contained in:
SangIlMo 2024-07-24 17:45:43 +09:00 committed by Martin Holst Swende
parent 3e190e95b2
commit 675bd3dc29
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -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 != "" {