1919from chia ._tests .util .time_out_assert import time_out_assert , time_out_assert_not_none
2020from chia .simulator .simulator_protocol import ReorgProtocol
2121from chia .types .blockchain_format .coin import Coin , coin_as_list
22- from chia .types .blockchain_format .program import NIL , Program
22+ from chia .types .blockchain_format .program import Program
2323from chia .types .coin_spend import make_spend
2424from chia .util .bech32m import encode_puzzle_hash
2525from chia .util .db_wrapper import DBWrapper2
@@ -82,7 +82,9 @@ async def mint_cat(
8282 1 ,
8383 [
8484 CreateCoin (wrapped_inner_puzzle_hash , amount , memos = [inner_puzzle_hash ]).to_program (),
85- UnknownCondition (opcode = Program .to (51 ), args = [NIL , Program .to (- 113 ), tail , NIL ]).to_program (),
85+ UnknownCondition (
86+ opcode = Program .to (51 ), args = [Program .NIL , Program .to (- 113 ), tail , Program .NIL ]
87+ ).to_program (),
8688 ],
8789 )
8890 )
@@ -112,7 +114,7 @@ async def mint_cat(
112114 cat_addition ,
113115 tail_hash ,
114116 eve_inner_puzzle ,
115- NIL ,
117+ Program . NIL ,
116118 )
117119 ],
118120 )
@@ -1411,7 +1413,7 @@ async def test_cat_change_detection(wallet_environments: WalletTestFramework, wa
14111413 if wallet_type is RCATWallet :
14121414 inner_puzhash = create_revocation_layer (bytes32 .zeros , inner_puzhash ).get_tree_hash ()
14131415 puzzlehash_unhardened = construct_cat_puzzle (
1414- CAT_MOD , Program .to ( None ) .get_tree_hash (), inner_puzhash
1416+ CAT_MOD , Program .NIL .get_tree_hash (), inner_puzhash
14151417 ).get_tree_hash_precalc (inner_puzhash )
14161418 change_derivation = DerivationRecord (
14171419 uint32 (0 ), puzzlehash_unhardened , pubkey_unhardened , WalletType .CAT , uint32 (2 ), False
@@ -1422,7 +1424,7 @@ async def test_cat_change_detection(wallet_environments: WalletTestFramework, wa
14221424 our_puzzle = await action_scope .get_puzzle (wallet .wallet_state_manager )
14231425 cat_puzzle = construct_cat_puzzle (
14241426 CAT_MOD ,
1425- Program .to ( None ) .get_tree_hash (),
1427+ Program .NIL .get_tree_hash (),
14261428 Program .to (1 ),
14271429 )
14281430 addr = encode_puzzle_hash (cat_puzzle .get_tree_hash (), "txch" )
@@ -1451,7 +1453,7 @@ async def test_cat_change_detection(wallet_environments: WalletTestFramework, wa
14511453 cat_coin = next (c for c in spend_bundle .additions () if c .amount == cat_amount_0 )
14521454 next_coin = Coin (
14531455 cat_coin .name (),
1454- construct_cat_puzzle (CAT_MOD , Program .to ( None ) .get_tree_hash (), our_puzzle ).get_tree_hash (),
1456+ construct_cat_puzzle (CAT_MOD , Program .NIL .get_tree_hash (), our_puzzle ).get_tree_hash (),
14551457 cat_amount_0 ,
14561458 )
14571459 eve_spend , _ = await wsm .sign_bundle (
@@ -1478,7 +1480,7 @@ async def test_cat_change_detection(wallet_environments: WalletTestFramework, wa
14781480 ),
14791481 make_spend (
14801482 next_coin ,
1481- construct_cat_puzzle (CAT_MOD , Program .to ( None ) .get_tree_hash (), our_puzzle ),
1483+ construct_cat_puzzle (CAT_MOD , Program .NIL .get_tree_hash (), our_puzzle ),
14821484 Program .to (
14831485 [
14841486 [
@@ -1660,7 +1662,7 @@ async def test_cat_melt_balance(wallet_environments: WalletTestFramework) -> Non
16601662 conditions = (
16611663 UnknownCondition (
16621664 opcode = Program .to (51 ),
1663- args = [Program .to ( None ) , Program .to (- 113 ), Program .to (ACS_TAIL ), Program .to ( None ) ],
1665+ args = [Program .NIL , Program .to (- 113 ), Program .to (ACS_TAIL ), Program .NIL ],
16641666 ),
16651667 ),
16661668 ),
0 commit comments