From cdf802654d5f97adaae50ad8cef5a612eb6ff9fb Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 15 Sep 2023 18:45:51 +0300 Subject: [PATCH 1/2] rpc-v2/chainHead: Generate events on `chainHead_unstable_followEvent` Signed-off-by: Alexandru Vasile --- substrate/client/rpc-spec-v2/src/chain_head/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/rpc-spec-v2/src/chain_head/api.rs b/substrate/client/rpc-spec-v2/src/chain_head/api.rs index 682cd690dd10..d93c4018b60f 100644 --- a/substrate/client/rpc-spec-v2/src/chain_head/api.rs +++ b/substrate/client/rpc-spec-v2/src/chain_head/api.rs @@ -30,7 +30,7 @@ pub trait ChainHeadApi { /// /// This method is unstable and subject to change in the future. #[subscription( - name = "chainHead_unstable_follow", + name = "chainHead_unstable_follow" => "chainHead_unstable_followEvent", unsubscribe = "chainHead_unstable_unfollow", item = FollowEvent, )] From 154aac40c2081b99db83605b6b357dd8d80bbb84 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Fri, 15 Sep 2023 18:46:29 +0300 Subject: [PATCH 2/2] rpc-v2/tx: Generate events on `transaction_unstable_watchEvent` Signed-off-by: Alexandru Vasile --- substrate/client/rpc-spec-v2/src/transaction/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/substrate/client/rpc-spec-v2/src/transaction/api.rs b/substrate/client/rpc-spec-v2/src/transaction/api.rs index c226ab86787e..3eb6cb204f24 100644 --- a/substrate/client/rpc-spec-v2/src/transaction/api.rs +++ b/substrate/client/rpc-spec-v2/src/transaction/api.rs @@ -29,7 +29,7 @@ pub trait TransactionApi { /// See [`TransactionEvent`](crate::transaction::event::TransactionEvent) for details on /// transaction life cycle. #[subscription( - name = "transaction_unstable_submitAndWatch" => "transaction_unstable_submitExtrinsic", + name = "transaction_unstable_submitAndWatch" => "transaction_unstable_watchEvent", unsubscribe = "transaction_unstable_unwatch", item = TransactionEvent, )]