diff --git a/Cargo.lock b/Cargo.lock index 667eb8b8d..a83e74c1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2194,9 +2194,9 @@ dependencies = [ [[package]] name = "jsonrpc" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34efde8d2422fb79ed56db1d3aea8fa5b583351d15a26770cdee2f88813dd702" +checksum = "a26d9104d516092f092d97448787505881fdb6518293b2d6500bf9c180c839dd" dependencies = [ "base64 0.13.1", "serde", diff --git a/zebra-utils/Cargo.toml b/zebra-utils/Cargo.toml index b32a99c7c..221301cd6 100644 --- a/zebra-utils/Cargo.toml +++ b/zebra-utils/Cargo.toml @@ -105,7 +105,7 @@ reqwest = { version = "0.11.23", default-features = false, features = ["rustls-t # These crates are needed for the zebra-checkpoints and search-issue-refs binaries tokio = { version = "1.35.1", features = ["full"], optional = true } -jsonrpc = { version = "0.16.0", optional = true } +jsonrpc = { version = "0.17.0", optional = true } zcash_primitives = { version = "0.13.0-rc.1", optional = true } zcash_client_backend = {version = "0.10.0-rc.1", optional = true} diff --git a/zebra-utils/src/bin/scanning-results-reader/main.rs b/zebra-utils/src/bin/scanning-results-reader/main.rs index 676c779d4..5e84978d5 100644 --- a/zebra-utils/src/bin/scanning-results-reader/main.rs +++ b/zebra-utils/src/bin/scanning-results-reader/main.rs @@ -106,8 +106,8 @@ fn get_tx_via_rpc(txid: String) -> String { .expect("URL should be valid") .build(); let client = Client::with_transport(transport); - let params = [RawValue::from_string(txid).expect("Provided TXID should be a valid JSON")]; - let request = client.build_request("getrawtransaction", ¶ms); + let params = RawValue::from_string(txid).expect("Provided TXID should be a valid JSON"); + let request = client.build_request("getrawtransaction", Some(¶ms)); let response = client .send_request(request) .expect("Sending the `getrawtransaction` request should succeed");