Skip to content

Commit

Permalink
reverted test change
Browse files Browse the repository at this point in the history
  • Loading branch information
vbar committed Jan 21, 2025
1 parent f89c5c1 commit 2a3a398
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions crates/rpc/src/method/subscribe_transaction_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2a3a398

Please sign in to comment.