File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,9 @@ pub fn create_address_from_witness() -> Address {
55
55
}
56
56
57
57
#[ allow( unused) ]
58
- pub fn create_txin ( txid : Txid ) -> TxIn {
59
- let witness = create_witness ( ) . 1 ;
60
-
58
+ pub fn create_txin ( txid : Txid , vout : u32 ) -> TxIn {
61
59
TxIn {
62
- previous_output : OutPoint { txid, vout : 0 } ,
63
- witness,
60
+ previous_output : OutPoint { txid, vout } ,
64
61
..Default :: default ( )
65
62
}
66
63
}
Original file line number Diff line number Diff line change @@ -165,14 +165,14 @@ async fn send_get_raw_transaction_async() {
165
165
) ;
166
166
167
167
// Send some funds to some other user.
168
- let txin = common:: create_txin ( tx1. compute_txid ( ) ) ;
168
+ let txin = common:: create_txin ( tx1. compute_txid ( ) , 0 ) ;
169
169
let txout = TxOut {
170
170
value : Amount :: from_sat ( 0x45 ) ,
171
171
script_pubkey : deposit_address. script_pubkey ( ) ,
172
172
} ;
173
173
let tx1 = common:: create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
174
174
175
- let txin = common:: create_txin ( tx2. compute_txid ( ) ) ;
175
+ let txin = common:: create_txin ( tx2. compute_txid ( ) , 0 ) ;
176
176
let txout = TxOut {
177
177
value : Amount :: from_sat ( 0x1F ) ,
178
178
script_pubkey : deposit_address. script_pubkey ( ) ,
You can’t perform that action at this time.
0 commit comments