We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Txid::from_str
1 parent e8476bc commit 24ccf9cCopy full SHA for 24ccf9c
src/async.rs
@@ -100,7 +100,7 @@ impl AsyncClient {
100
return Ok(None);
101
}
102
103
- Ok(Some(deserialize(&Vec::from_hex(&resp.text().await?)?)?))
+ Ok(Some(Txid::from_str(&resp.text().await?)?))
104
105
106
/// Get the status of a [`Transaction`] given its [`Txid`].
src/blocking.rs
@@ -101,7 +101,7 @@ impl BlockingClient {
.call();
match resp {
- Ok(resp) => Ok(Some(deserialize(&Vec::from_hex(&resp.into_string()?)?)?)),
+ Ok(resp) => Ok(Some(Txid::from_str(&resp.into_string()?)?)),
Err(ureq::Error::Status(code, _)) => {
if is_status_not_found(code) {
107
0 commit comments