Skip to content

Commit 9547f77

Browse files
committed
remove store
1 parent 709bb08 commit 9547f77

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

block/submitter_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,25 @@ import (
1717
)
1818

1919
// newTestManagerWithDA creates a Manager instance with a mocked DA layer for testing.
20-
func newTestManagerWithDA(t *testing.T, da *mocks.DA) (m *Manager, mockStore *mocks.Store) {
20+
func newTestManagerWithDA(t *testing.T, da *mocks.DA) (m *Manager) {
2121
logger := log.NewNopLogger()
2222
nodeConf := config.DefaultConfig
2323

2424
return &Manager{
25-
store: mockStore,
2625
da: da,
2726
logger: logger,
2827
config: nodeConf,
2928
gasPrice: 1.0,
3029
gasMultiplier: 2.0,
3130
headerCache: cache.NewCache[types.SignedHeader](),
3231
dataCache: cache.NewCache[types.Data](),
33-
}, mockStore
32+
}
3433
}
3534

3635
// TestSubmitBatchToDA_Success verifies that submitBatchToDA succeeds when the DA layer accepts the batch.
3736
func TestSubmitBatchToDA_Success(t *testing.T) {
3837
da := &mocks.DA{}
39-
m, _ := newTestManagerWithDA(t, da)
38+
m := newTestManagerWithDA(t, da)
4039

4140
batch := coresequencer.Batch{Transactions: [][]byte{[]byte("tx1"), []byte("tx2")}}
4241

@@ -52,7 +51,7 @@ func TestSubmitBatchToDA_Success(t *testing.T) {
5251
// TestSubmitBatchToDA_Failure verifies that submitBatchToDA returns an error for various DA failures.
5352
func TestSubmitBatchToDA_Failure(t *testing.T) {
5453
da := &mocks.DA{}
55-
m, _ := newTestManagerWithDA(t, da)
54+
m := newTestManagerWithDA(t, da)
5655

5756
batch := coresequencer.Batch{Transactions: [][]byte{[]byte("tx1"), []byte("tx2")}}
5857

0 commit comments

Comments
 (0)