@@ -754,7 +754,7 @@ mod tests {
754
754
ctx,
755
755
offer,
756
756
initial_registration_price,
757
- catalog_constants,
757
+ catalog_constants. with_price_singleton ( price_singleton_launcher_id ) ,
758
758
& TESTNET11_CONSTANTS ,
759
759
) ?;
760
760
@@ -764,8 +764,7 @@ mod tests {
764
764
765
765
let mut slots: Vec < Slot < CatalogSlotValue > > = slots. into ( ) ;
766
766
for i in 0 ..7 {
767
- println ! ( "i: {}" , i) ; // TODO: debug
768
- // create precommit coin
767
+ // create precommit coin
769
768
let reg_amount = if i % 2 == 1 {
770
769
test_price_schedule[ i / 2 ]
771
770
} else {
@@ -914,12 +913,7 @@ mod tests {
914
913
let solution_program = ctx. serialize ( & NodePtr :: NIL ) ?;
915
914
ctx. insert ( CoinSpend :: new ( funds_coin, funds_program, solution_program) ) ;
916
915
917
- let spends = ctx. take ( ) ;
918
- // todo: debug
919
- let spends = spends. clone ( ) ;
920
- print_spend_bundle_to_file ( spends. clone ( ) , Signature :: default ( ) , "sb.debug" ) ;
921
- sim. spend_coins ( spends, & [ user_sk. clone ( ) ] ) ?;
922
- println ! ( "spent catalog :)" ) ; // TODO: debug
916
+ sim. spend_coins ( ctx. take ( ) , & [ user_sk. clone ( ) ] ) ?;
923
917
924
918
slots. retain ( |s| * s != left_slot && * s != right_slot) ;
925
919
slots. extend ( new_slots) ;
@@ -929,7 +923,7 @@ mod tests {
929
923
930
924
assert_eq ! (
931
925
catalog. info. state. registration_price,
932
- test_price_schedule[ 3 ] , // 0, 2, 4, 6 updated the price
926
+ test_price_schedule[ 2 ] , // 1, 3, 5 updated the price
933
927
) ;
934
928
935
929
Ok ( ( ) )
0 commit comments