From 3c4635b9ff93804efe743fd1b279425b311f53d6 Mon Sep 17 00:00:00 2001 From: IronGauntlets Date: Fri, 22 Nov 2024 12:51:21 +0000 Subject: [PATCH] Use SubscriptionResponse for subscribeNewHeads --- rpc/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/events.go b/rpc/events.go index 943315c3b5..a7298486f8 100644 --- a/rpc/events.go +++ b/rpc/events.go @@ -78,7 +78,7 @@ func (h *Handler) SubscribeNewHeads(ctx context.Context) (uint64, *jsonrpc.Error case <-subscriptionCtx.Done(): return case header := <-headerSub.Recv(): - resp, err := json.Marshal(jsonrpc.Request{ + resp, err := json.Marshal(SubscriptionResponse{ Version: "2.0", Method: "juno_subscribeNewHeads", Params: map[string]any{