From 2a3a39824fb64b849dc497bcd4aeb968e7c6d425 Mon Sep 17 00:00:00 2001 From: Vaclav Barta Date: Tue, 21 Jan 2025 12:29:12 +0100 Subject: [PATCH] reverted test change --- .../method/subscribe_transaction_status.rs | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/crates/rpc/src/method/subscribe_transaction_status.rs b/crates/rpc/src/method/subscribe_transaction_status.rs index 3f149e9411..2cc2edd339 100644 --- a/crates/rpc/src/method/subscribe_transaction_status.rs +++ b/crates/rpc/src/method/subscribe_transaction_status.rs @@ -451,6 +451,19 @@ mod tests { None, |subscription_id| { vec![ + serde_json::json!({ + "jsonrpc": "2.0", + "method": "starknet_subscriptionTransactionStatus", + "params": { + "result": { + "transaction_hash": "0x1", + "status": { + "finality_status": "RECEIVED", + } + }, + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V07)).unwrap(), + } + }), serde_json::json!({ "jsonrpc": "2.0", "method": "starknet_subscriptionTransactionStatus", @@ -568,6 +581,19 @@ mod tests { None, |subscription_id| { vec![ + serde_json::json!({ + "jsonrpc": "2.0", + "method": "starknet_subscriptionTransactionStatus", + "params": { + "result": { + "transaction_hash": "0x1", + "status": { + "finality_status": "RECEIVED", + } + }, + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V07)).unwrap(), + } + }), serde_json::json!({ "jsonrpc": "2.0", "method": "starknet_subscriptionTransactionStatus", @@ -600,6 +626,19 @@ mod tests { }), |subscription_id| { vec![ + serde_json::json!({ + "jsonrpc": "2.0", + "method": "starknet_subscriptionTransactionStatus", + "params": { + "result": { + "transaction_hash": "0x1", + "status": { + "finality_status": "RECEIVED", + } + }, + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V07)).unwrap(), + } + }), serde_json::json!({ "jsonrpc": "2.0", "method": "starknet_subscriptionTransactionStatus", @@ -647,6 +686,19 @@ mod tests { }), |subscription_id| { vec![ + serde_json::json!({ + "jsonrpc": "2.0", + "method": "starknet_subscriptionTransactionStatus", + "params": { + "result": { + "transaction_hash": "0x1", + "status": { + "finality_status": "RECEIVED", + } + }, + "subscription_id": subscription_id.serialize(Serializer::new(RpcVersion::V07)).unwrap(), + } + }), serde_json::json!({ "jsonrpc": "2.0", "method": "starknet_subscriptionTransactionStatus",