Add the implementation of `Display` for `transaction::Version`

This commit is contained in:
harshit933 2023-12-22 18:30:37 +05:30
parent 9ea3e29d61
commit 429a3ecec4
1 changed files with 6 additions and 0 deletions

View File

@ -1030,6 +1030,12 @@ impl Decodable for Version {
} }
} }
impl fmt::Display for Version {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&self.0, f)
}
}
impl_consensus_encoding!(TxOut, value, script_pubkey); impl_consensus_encoding!(TxOut, value, script_pubkey);
impl Encodable for OutPoint { impl Encodable for OutPoint {