Fix serialization of non-localized transactions.

This commit is contained in:
Tomasz Drwięga
2017-10-23 14:46:36 +02:00
parent 097815cb71
commit 4ba2587226
7 changed files with 28 additions and 12 deletions

View File

@@ -469,6 +469,11 @@ impl SignedTransaction {
pub fn is_unsigned(&self) -> bool {
self.transaction.is_unsigned()
}
/// Deconstructs this transaction back into `UnverifiedTransaction`
pub fn deconstruct(self) -> (UnverifiedTransaction, Address, Option<Public>) {
(self.transaction, self.sender, self.public)
}
}
/// Signed Transaction that is a part of canon blockchain.