Skip to content

Commit

Permalink
Fix submitter testcase (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldDogs authored Dec 23, 2024
1 parent e12d564 commit 87a70f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tx-submitter/services/rollup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func TestGetGasTipAndCap(t *testing.T) {
MinTip: 1e9,
TipFeeBump: 100,
}
r := NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil)
r := NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil, nil)
tip, feecap, blobfee, err := r.GetGasTipAndCap()
require.NoError(t, err)
require.NotNil(t, tip)
Expand All @@ -88,7 +88,7 @@ func TestGetGasTipAndCap(t *testing.T) {
MinTip: 1e9,
TipFeeBump: 200,
}
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil)
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil, nil)
tip, feecap, blobfee, err = r.GetGasTipAndCap()
require.NoError(t, err)
require.NotNil(t, tip)
Expand All @@ -102,7 +102,7 @@ func TestGetGasTipAndCap(t *testing.T) {
MinTip: 1e9,
TipFeeBump: 200,
}
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil)
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil, nil)
_, _, _, err = r.GetGasTipAndCap()
require.ErrorContains(t, err, "base fee is too high")

Expand All @@ -112,7 +112,7 @@ func TestGetGasTipAndCap(t *testing.T) {
MinTip: 1e9,
TipFeeBump: 200,
}
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil)
r = NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, nil, nil, common.Address{}, nil, config, nil, nil, nil, nil, nil)
_, _, _, err = r.GetGasTipAndCap()
require.ErrorContains(t, err, "tip is too high")

Expand Down Expand Up @@ -142,7 +142,7 @@ func TestReSubmitTx(t *testing.T) {
priv, err := crypto.GenerateKey()
require.NoError(t, err)

r := NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, big.NewInt(1), priv, common.Address{}, nil, config, nil, nil, nil, nil)
r := NewRollup(context.Background(), nil, nil, l1Mock, nil, nil, nil, big.NewInt(1), priv, common.Address{}, nil, config, nil, nil, nil, nil, nil)
_, err = r.ReSubmitTx(false, nil)
require.ErrorContains(t, err, "nil tx")
oldTx := types.NewTx(&types.DynamicFeeTx{
Expand Down

0 comments on commit 87a70f1

Please sign in to comment.