@@ -133,6 +133,7 @@ async def test_cc_spend(self, two_wallet_nodes):
133133 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 100 )
134134 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 100 )
135135
136+ assert cc_wallet .cc_info .my_core
136137 colour = cc_wallet_puzzles .get_genesis_from_core (cc_wallet .cc_info .my_core )
137138
138139 cc_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -232,10 +233,10 @@ async def test_generate_zero_val(self, two_wallet_nodes):
232233 for i in range (1 , num_blocks ):
233234 await full_node_1 .farm_new_block (FarmNewBlockProtocol (ph ))
234235
235-
236236 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 100 )
237237 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 100 )
238238
239+ assert cc_wallet .cc_info .my_core
239240 colour = cc_wallet_puzzles .get_genesis_from_core (cc_wallet .cc_info .my_core )
240241
241242 cc_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -295,6 +296,7 @@ async def test_cc_trade(self, two_wallet_nodes):
295296 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 100 )
296297 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 100 )
297298
299+ assert cc_wallet .cc_info .my_core
298300 colour = cc_wallet_puzzles .get_genesis_from_core (cc_wallet .cc_info .my_core )
299301
300302 cc_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -382,6 +384,7 @@ async def test_cc_spend_uncoloured(self, two_wallet_nodes):
382384 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 100 )
383385 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 100 )
384386
387+ assert cc_wallet .cc_info .my_core
385388 colour = cc_wallet_puzzles .get_genesis_from_core (cc_wallet .cc_info .my_core )
386389
387390 cc_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -396,7 +399,6 @@ async def test_cc_spend_uncoloured(self, two_wallet_nodes):
396399 for i in range (1 , num_blocks ):
397400 await full_node_1 .farm_new_block (FarmNewBlockProtocol (ph ))
398401
399-
400402 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 40 )
401403 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 40 )
402404
@@ -412,7 +414,6 @@ async def test_cc_spend_uncoloured(self, two_wallet_nodes):
412414 for i in range (0 , num_blocks ):
413415 await full_node_1 .farm_new_block (FarmNewBlockProtocol (token_bytes ()))
414416
415-
416417 id = cc_wallet_2 .wallet_info .id
417418 wsm = cc_wallet_2 .wallet_state_manager
418419 await self .time_out_assert (15 , wsm .get_confirmed_balance_for_wallet , 70 , id )
@@ -457,6 +458,7 @@ async def test_cc_trade_with_multiple_colours(self, two_wallet_nodes):
457458 await self .time_out_assert (15 , red_wallet .get_confirmed_balance , 100 )
458459 await self .time_out_assert (15 , red_wallet .get_unconfirmed_balance , 100 )
459460
461+ assert red_wallet .cc_info .my_core
460462 red = cc_wallet_puzzles .get_genesis_from_core (red_wallet .cc_info .my_core )
461463
462464 await full_node_1 .farm_new_block (FarmNewBlockProtocol (ph2 ))
@@ -469,6 +471,7 @@ async def test_cc_trade_with_multiple_colours(self, two_wallet_nodes):
469471 for i in range (1 , num_blocks ):
470472 await full_node_1 .farm_new_block (FarmNewBlockProtocol (ph ))
471473
474+ assert blue_wallet_2 .cc_info .my_core
472475 blue = cc_wallet_puzzles .get_genesis_from_core (blue_wallet_2 .cc_info .my_core )
473476
474477 red_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -570,11 +573,10 @@ async def test_create_offer_with_zero_val(self, two_wallet_nodes):
570573 for i in range (1 , num_blocks ):
571574 await full_node_1 .farm_new_block (FarmNewBlockProtocol (ph ))
572575
573-
574576 await self .time_out_assert (15 , cc_wallet .get_unconfirmed_balance , 100 )
575577 await self .time_out_assert (15 , cc_wallet .get_confirmed_balance , 100 )
576578
577-
579+ assert cc_wallet . cc_info . my_core
578580 colour = cc_wallet_puzzles .get_genesis_from_core (cc_wallet .cc_info .my_core )
579581
580582 cc_wallet_2 : CCWallet = await CCWallet .create_wallet_for_cc (
@@ -622,6 +624,5 @@ async def test_create_offer_with_zero_val(self, two_wallet_nodes):
622624 for i in range (0 , num_blocks ):
623625 await full_node_1 .farm_new_block (FarmNewBlockProtocol (token_bytes ()))
624626
625-
626627 await self .time_out_assert (15 , cc_wallet_2 .get_confirmed_balance , 30 )
627628 await self .time_out_assert (15 , cc_wallet_2 .get_confirmed_balance , 30 )
0 commit comments