Add transaction::Transaction::into_data
This commit is contained in:
parent
af9edcea25
commit
f590134ee8
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue