Skip to content

Commit 5cac638

Browse files
committed
Use SubscriptionResponse for subscribeNewHeads
1 parent a0f5ff2 commit 5cac638

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (h *Handler) SubscribeNewHeads(ctx context.Context) (uint64, *jsonrpc.Error
7878
case <-subscriptionCtx.Done():
7979
return
8080
case header := <-headerSub.Recv():
81-
resp, err := json.Marshal(jsonrpc.Request{
81+
resp, err := json.Marshal(SubscriptionResponse{
8282
Version: "2.0",
8383
Method: "juno_subscribeNewHeads",
8484
Params: map[string]any{

0 commit comments

Comments
 (0)