Adding tx_hash to wallet response

This commit is contained in:
futurechimp
2021-12-01 18:19:14 +00:00
parent 3e93b4ffd5
commit 6cb58d1f1c
@@ -17,6 +17,7 @@ pub struct TauriTxResult {
gas_used: u64,
block_height: u64,
details: TransactionDetails,
tx_hash: String,
}
#[cfg_attr(test, derive(ts_rs::TS))]
@@ -34,6 +35,7 @@ impl TauriTxResult {
gas_wanted: t.check_tx.gas_wanted.value(),
gas_used: t.check_tx.gas_used.value(),
block_height: t.height.value(),
tx_hash: t.hash.to_string(),
details,
}
}