Add the implementation of `Display` for `transaction::Version`
This commit is contained in:
parent
9ea3e29d61
commit
429a3ecec4
|
@ -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 Encodable for OutPoint {
|
||||
|
|
Loading…
Reference in New Issue