build(deps): bump `jsonrpc` from 0.16.0 to 0.17.0 (#8139)

* bump jsonrpc minor version

* update use of jsonrpc
This commit is contained in:
Arya 2024-01-08 16:01:16 -05:00 committed by GitHub
parent 01ddd87cb4
commit 704f88eb41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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}

View File

@ -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", &params);
let params = RawValue::from_string(txid).expect("Provided TXID should be a valid JSON");
let request = client.build_request("getrawtransaction", Some(&params));
let response = client
.send_request(request)
.expect("Sending the `getrawtransaction` request should succeed");