Skip to content

Commit 30d72fb

Browse files
committed
chore(api)!: remove PrevOut in favor of Vout
1 parent 9f7e9b3 commit 30d72fb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/api.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ pub use bitcoin::{
2525
Wtxid,
2626
};
2727

28-
/// Information about a previous output.
29-
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
30-
pub struct PrevOut {
31-
/// The value of the previous output, in satoshis.
32-
pub value: u64,
33-
/// The ScriptPubKey that the previous output is locked to, as a [`ScriptBuf`].
34-
pub scriptpubkey: ScriptBuf,
35-
}
36-
3728
/// Information about an input from a [`Transaction`].
3829
#[derive(Deserialize, Clone, Debug, PartialEq, Eq)]
3930
pub struct Vin {
@@ -43,7 +34,7 @@ pub struct Vin {
4334
pub vout: u32,
4435
/// The previous output amount and ScriptPubKey.
4536
/// `None` if this is a coinbase input.
46-
pub prevout: Option<PrevOut>,
37+
pub prevout: Option<Vout>,
4738
/// The ScriptSig authorizes spending this input.
4839
pub scriptsig: ScriptBuf,
4940
/// The Witness that authorizes spending this input, if this is a SegWit spend.

0 commit comments

Comments
 (0)