Add confirmed field to TransactionStatus

Deserialisation was failing because the response can contain a confirmed boolean without a blockheight.
This commit is contained in:
rishflab 2021-02-09 18:27:44 +11:00
parent 34032c8132
commit b9f0c2cc9d

View File

@ -196,6 +196,7 @@ impl TransactionBlockHeight for Wallet {
#[derive(Serialize, Deserialize, Debug, Copy, Clone)]
struct TransactionStatus {
block_height: Option<u32>,
confirmed: bool,
}
// todo: Implement conversion to anyhow::error so we can dont have to wrap these
// errors