Skip to content

Commit

Permalink
update use of jsonrpc
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Jan 8, 2024
1 parent 8890f0f commit e681ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebra-utils/src/bin/scanning-results-reader/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit e681ab6

Please sign in to comment.