Add transaction::Transaction::into_data

This commit is contained in:
Kris Nuttycombe 2022-02-03 13:55:16 -07:00
parent af9edcea25
commit f590134ee8
1 changed files with 4 additions and 0 deletions

View File

@ -534,6 +534,10 @@ impl Transaction {
Transaction { txid, data } Transaction { txid, data }
} }
pub fn into_data(self) -> TransactionData<Authorized> {
self.data
}
pub fn txid(&self) -> TxId { pub fn txid(&self) -> TxId {
self.txid self.txid
} }