Skip to content

Commit

Permalink
Use SubscriptionResponse for subscribeNewHeads
Browse files Browse the repository at this point in the history
  • Loading branch information
IronGauntlets committed Nov 26, 2024
1 parent 184990e commit c218d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit c218d68

Please sign in to comment.