Skip to content

Commit

Permalink
Fix esplora
Browse files Browse the repository at this point in the history
  • Loading branch information
223880 committed Nov 11, 2024
1 parent 912e163 commit b2245e1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/lending/esplora.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,20 @@ impl esplora_client::TX_INPUT {
pub fn get_block_height(&self) -> BLOCK_HEIGHT {
self.blockheight.to_string()
}
}
}


impl esplora_client::TX_OUTPUT {
pub fn get_tx_hash(&self) -> TX_HASH {
self.txid.to_string()
}
pub fn get_tx_index(&self) -> TX_INDEX {
self.txid.to_string()
}
pub fn get_block_hash(&self) -> BLOCK_HASH {
self.blockhash.to_string()
}
pub fn get_block_height(&self) -> BLOCK_HEIGHT {
self.blockheight.to_string()
}
}

0 comments on commit b2245e1

Please sign in to comment.