Make TransactionKind have a reference to Signed

Broken commit due to partial staging of one file.
This commit is contained in:
Luke Parker
2023-04-12 09:38:20 -04:00
parent 354ac856a5
commit d5a12a9b97
4 changed files with 41 additions and 29 deletions

View File

@@ -51,7 +51,7 @@ impl ReadWrite for ProvidedTransaction {
}
impl Transaction for ProvidedTransaction {
fn kind(&self) -> TransactionKind {
fn kind(&self) -> TransactionKind<'_> {
TransactionKind::Provided
}
@@ -91,8 +91,8 @@ impl ReadWrite for SignedTransaction {
}
impl Transaction for SignedTransaction {
fn kind(&self) -> TransactionKind {
TransactionKind::Signed(self.1.clone())
fn kind(&self) -> TransactionKind<'_> {
TransactionKind::Signed(&self.1)
}
fn hash(&self) -> [u8; 32] {