@@ -199,7 +199,7 @@ impl RpcApi for Client {
199
199
#[ cfg( test) ]
200
200
mod tests {
201
201
use super :: * ;
202
- use crate :: test_common:: * ;
202
+ use crate :: test_common;
203
203
use bitcoin:: { hashes:: Hash , Amount , OutPoint , ScriptBuf , TxIn , TxOut , Txid , Witness } ;
204
204
205
205
/// Tests `send_raw_transaction` and `get_raw_transaction`.
@@ -219,9 +219,9 @@ mod tests {
219
219
} ;
220
220
let txout = TxOut {
221
221
value : Amount :: from_sat ( 0x1F ) ,
222
- script_pubkey : get_temp_address ( ) . script_pubkey ( ) ,
222
+ script_pubkey : test_common :: get_temp_address ( ) . script_pubkey ( ) ,
223
223
} ;
224
- let inserted_tx1 = create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
224
+ let inserted_tx1 = test_common :: create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
225
225
rpc. send_raw_transaction ( & inserted_tx1) . unwrap ( ) ;
226
226
227
227
let txin = TxIn {
@@ -235,9 +235,9 @@ mod tests {
235
235
} ;
236
236
let txout = TxOut {
237
237
value : Amount :: from_sat ( 0x45 ) ,
238
- script_pubkey : get_temp_address ( ) . script_pubkey ( ) ,
238
+ script_pubkey : test_common :: get_temp_address ( ) . script_pubkey ( ) ,
239
239
} ;
240
- let inserted_tx2 = create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
240
+ let inserted_tx2 = test_common :: create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
241
241
rpc. send_raw_transaction ( & inserted_tx2) . unwrap ( ) ;
242
242
243
243
// Retrieve inserted transactions from Bitcoin.
@@ -271,9 +271,9 @@ mod tests {
271
271
} ;
272
272
let txout = TxOut {
273
273
value : Amount :: from_sat ( 0x1F ) ,
274
- script_pubkey : get_temp_address ( ) . script_pubkey ( ) ,
274
+ script_pubkey : test_common :: get_temp_address ( ) . script_pubkey ( ) ,
275
275
} ;
276
- let inserted_tx = create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
276
+ let inserted_tx = test_common :: create_transaction ( vec ! [ txin] , vec ! [ txout] ) ;
277
277
rpc. send_raw_transaction ( & inserted_tx) . unwrap ( ) ;
278
278
279
279
let txid = inserted_tx. compute_txid ( ) ;
@@ -287,7 +287,7 @@ mod tests {
287
287
fn send_to_address ( ) {
288
288
let rpc = Client :: new ( "" , bitcoincore_rpc:: Auth :: None ) . unwrap ( ) ;
289
289
290
- let address = get_temp_address ( ) ;
290
+ let address = test_common :: get_temp_address ( ) ;
291
291
292
292
let txid = rpc
293
293
. send_to_address (
0 commit comments