diff --git a/cmd/crates/stellar-rpc-client/src/lib.rs b/cmd/crates/stellar-rpc-client/src/lib.rs index 685914ed..799e5a00 100644 --- a/cmd/crates/stellar-rpc-client/src/lib.rs +++ b/cmd/crates/stellar-rpc-client/src/lib.rs @@ -802,7 +802,9 @@ impl Client { pub async fn get_transaction(&self, tx_id: &Hash) -> Result { let mut oparams = ObjectParams::new(); oparams.insert("hash", tx_id)?; - Ok(self.client().request("getTransaction", oparams).await?) + let resp: GetTransactionResponseRaw = + self.client().request("getTransaction", oparams).await?; + Ok(resp.try_into()?) } /// Poll the transaction status. Can provide a timeout in seconds, otherwise uses the default timeout.