Skip to content

Commit

Permalink
chore: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Sep 25, 2024
1 parent 9c5f810 commit bc7a299
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use bitcoin::Address as BitcoinAddress;
use bitcoin::Amount as BitcoinAmount;
use bitcoin::FeeRate as BitcoinFeeRate;
use bitcoin::ScriptBuf as BitcoinScriptBuf;
use bitcoin::Sequence;
use bitcoin::Transaction as BitcoinTransaction;
use bitcoin::TxIn as BitcoinTxIn;
use bitcoin::TxOut as BitcoinTxOut;
use bitcoin::Sequence;

pub use bitcoin::BlockHash;
pub use bitcoin::OutPoint;
Expand Down Expand Up @@ -245,11 +245,21 @@ impl Transaction {
}

pub fn input(&self) -> Vec<TxIn> {
self.0.input.clone().into_iter().map(|tx_in| tx_in.into()).collect()
self.0
.input
.clone()
.into_iter()
.map(|tx_in| tx_in.into())
.collect()
}

pub fn output(&self) -> Vec<TxOut> {
self.0.output.clone().into_iter().map(|tx_out| tx_out.into()).collect()
self.0
.output
.clone()
.into_iter()
.map(|tx_out| tx_out.into())
.collect()
}

pub fn lock_time(&self) -> u32 {
Expand Down

0 comments on commit bc7a299

Please sign in to comment.