Skip to content

Commit 7bd2c8e

Browse files
committed
fix mocks
1 parent 9aa785f commit 7bd2c8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/evm/server/force_inclusion_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"time"
1111

1212
"github.com/evstack/ev-node/pkg/config"
13+
blobrpc "github.com/evstack/ev-node/pkg/da/jsonrpc"
1314
da "github.com/evstack/ev-node/pkg/da/types"
1415
"github.com/evstack/ev-node/pkg/genesis"
1516
"github.com/rs/zerolog"
@@ -73,6 +74,14 @@ func (m *mockDA) HasForcedInclusionNamespace() bool {
7374
return true
7475
}
7576

77+
func (m *mockDA) Subscribe(ctx context.Context, namespace []byte) (<-chan *blobrpc.SubscriptionResponse, error) {
78+
return nil, nil
79+
}
80+
81+
func (m *mockDA) LocalHead(ctx context.Context) (uint64, error) {
82+
return 0, nil
83+
}
84+
7685
func TestForceInclusionServer_handleSendRawTransaction_Success(t *testing.T) {
7786
testHeight := uint64(100)
7887

0 commit comments

Comments
 (0)