From fc0102c4c7f5a9a0adb6aa87c596f3629f053e4f Mon Sep 17 00:00:00 2001 From: IronGauntlets Date: Tue, 14 Jan 2025 17:07:44 +0000 Subject: [PATCH] Update ws block parameter name as per v0.8.0-rc1 --- rpc/handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/handlers.go b/rpc/handlers.go index 1770a5b89f..4c9fcb3588 100644 --- a/rpc/handlers.go +++ b/rpc/handlers.go @@ -355,17 +355,17 @@ func (h *Handler) Methods() ([]jsonrpc.Method, string) { //nolint: funlen }, { Name: "starknet_subscribeEvents", - Params: []jsonrpc.Parameter{{Name: "from_address", Optional: true}, {Name: "keys", Optional: true}, {Name: "block", Optional: true}}, + Params: []jsonrpc.Parameter{{Name: "from_address", Optional: true}, {Name: "keys", Optional: true}, {Name: "block_id", Optional: true}}, Handler: h.SubscribeEvents, }, { Name: "starknet_subscribeNewHeads", - Params: []jsonrpc.Parameter{{Name: "block", Optional: true}}, + Params: []jsonrpc.Parameter{{Name: "block_id", Optional: true}}, Handler: h.SubscribeNewHeads, }, { Name: "starknet_subscribeTransactionStatus", - Params: []jsonrpc.Parameter{{Name: "transaction_hash"}, {Name: "block", Optional: true}}, + Params: []jsonrpc.Parameter{{Name: "transaction_hash"}, {Name: "block_id", Optional: true}}, Handler: h.SubscribeTransactionStatus, }, {