@@ -298,7 +298,7 @@ fn test_create_tx_custom_locktime() {
298298 let mut builder = wallet. build_tx ( ) ;
299299 builder
300300 . add_recipient ( addr. script_pubkey ( ) , Amount :: from_sat ( 25_000 ) )
301- . current_height ( 630_001 )
301+ . current_height ( absolute :: Height :: from_consensus ( 630_001 ) . unwrap ( ) )
302302 . nlocktime ( absolute:: LockTime :: from_height ( 630_000 ) . unwrap ( ) ) ;
303303 let psbt = builder. finish ( ) . unwrap ( ) ;
304304
@@ -2537,7 +2537,7 @@ fn test_spend_coinbase() {
25372537 let mut builder = wallet. build_tx ( ) ;
25382538 builder
25392539 . add_recipient ( addr. script_pubkey ( ) , balance. immature / 2 )
2540- . current_height ( confirmation_height) ;
2540+ . current_height ( absolute :: Height :: from_consensus ( confirmation_height) . unwrap ( ) ) ;
25412541 assert ! ( matches!(
25422542 builder. finish( ) ,
25432543 Err ( CreateTxError :: CoinSelection (
@@ -2552,7 +2552,7 @@ fn test_spend_coinbase() {
25522552 let mut builder = wallet. build_tx ( ) ;
25532553 builder
25542554 . add_recipient ( addr. script_pubkey ( ) , balance. immature / 2 )
2555- . current_height ( not_yet_mature_time) ;
2555+ . current_height ( absolute :: Height :: from_consensus ( not_yet_mature_time) . unwrap ( ) ) ;
25562556 assert_matches ! (
25572557 builder. finish( ) ,
25582558 Err ( CreateTxError :: CoinSelection (
@@ -2583,7 +2583,7 @@ fn test_spend_coinbase() {
25832583 let mut builder = wallet. build_tx ( ) ;
25842584 builder
25852585 . add_recipient ( addr. script_pubkey ( ) , balance. confirmed / 2 )
2586- . current_height ( maturity_time) ;
2586+ . current_height ( absolute :: Height :: from_consensus ( maturity_time) . unwrap ( ) ) ;
25872587 builder. finish ( ) . unwrap ( ) ;
25882588}
25892589
0 commit comments