Skip to content

Commit b7774f3

Browse files
committed
refactor(api)!: use bitcoin::transaction::Version for EsploraTx::version
1 parent ae96fe1 commit b7774f3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ pub struct BlockStatus {
118118
pub 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

0 commit comments

Comments
 (0)