Skip to content

Commit

Permalink
fix: use correct json-rpc formatting for eth_unsubscribe on Subscript…
Browse files Browse the repository at this point in the history
…ionStream drop (gakonst#2669)
  • Loading branch information
gbrew authored and jackiec22 committed Mar 6, 2024
1 parent db657c5 commit 2d619b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-providers/src/rpc/transports/ws/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl SubscriptionManager {
// result in the server sending us notifications we ignore
let unsub_request = InFlight {
method: "eth_unsubscribe".to_string(),
params: SubId(server_id).serialize_raw().ok()?,
params: to_raw_value(&[server_id]).ok()?,
channel,
};
// reuse the RPC ID. this is somewhat dirty.
Expand Down

0 comments on commit 2d619b6

Please sign in to comment.