diff --git a/core/src/builder/transaction/txhandler.rs b/core/src/builder/transaction/txhandler.rs index 5228d9e5..3cee7923 100644 --- a/core/src/builder/transaction/txhandler.rs +++ b/core/src/builder/transaction/txhandler.rs @@ -56,9 +56,7 @@ impl TxHandler { let txin = self.txins.get(idx).ok_or(BridgeError::TxInputNotFound)?; Ok(txin.get_signature_id()) } -} -impl TxHandler { pub fn get_cached_tx(&self) -> &Transaction { &self.cached_tx } @@ -150,7 +148,9 @@ impl TxHandler { Ok(sig_hash) } +} +impl TxHandler { pub fn promote(self) -> Result, BridgeError> { if self.txins.iter().any(|s| s.get_witness().is_none()) { return Err(BridgeError::MissingWitnessData); @@ -164,9 +164,7 @@ impl TxHandler { phantom: PhantomData::, }) } -} -impl TxHandler { /// Constructs the witness for a script path spend of a transaction input. /// /// # Arguments