File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,8 +118,8 @@ pub struct BlockStatus {
118118pub struct EsploraTx {
119119 /// The [`Txid`] of the [`Transaction`].
120120 pub txid : Txid ,
121- /// The version number of the [`Transaction`].
122- pub version : i32 ,
121+ /// The version of the [`Transaction`].
122+ pub version : transaction :: Version ,
123123 /// The locktime of the [`Transaction`].
124124 /// Sets a time or height after which the [`Transaction`] can be mined.
125125 pub locktime : u32 ,
@@ -400,7 +400,7 @@ impl EsploraTx {
400400 /// and reconstructs the [`Transaction`] from its inputs and outputs.
401401 pub fn to_tx ( & self ) -> Transaction {
402402 Transaction {
403- version : transaction :: Version :: non_standard ( self . version ) ,
403+ version : self . version ,
404404 lock_time : bitcoin:: absolute:: LockTime :: from_consensus ( self . locktime ) ,
405405 input : self
406406 . vin
You can’t perform that action at this time.
0 commit comments