@@ -257,9 +257,9 @@ def make_singleton_coin_spend(
257
257
solution = singleton_top_layer .solution_for_singleton (lineage_proof , uint64 (coin_to_spend .amount ), inner_solution )
258
258
if is_eve_spend :
259
259
# Parent here is the launcher coin
260
- puzzle_reveal = SerializedProgram . from_program (
261
- singleton_top_layer . puzzle_for_singleton ( parent_coin_spend .coin .name (), inner_puzzle )
262
- )
260
+ puzzle_reveal = singleton_top_layer . puzzle_for_singleton (
261
+ parent_coin_spend .coin .name (), inner_puzzle
262
+ ). to_serialized ()
263
263
else :
264
264
puzzle_reveal = parent_coin_spend .puzzle_reveal
265
265
return make_spend (coin_to_spend , puzzle_reveal , solution ), delegated_puzzle
@@ -413,8 +413,8 @@ async def test_singleton_fast_forward_different_block(is_eligible_for_ff: bool)
413
413
eve_coin_spend , singleton , inner_puzzle , inner_conditions
414
414
)
415
415
# Spend also a remaining coin
416
- remaining_spend_solution = SerializedProgram .from_program (
417
- Program . to ( [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]])
416
+ remaining_spend_solution = SerializedProgram .to (
417
+ [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]]
418
418
)
419
419
remaining_coin_spend = CoinSpend (remaining_coin , IDENTITY_PUZZLE , remaining_spend_solution )
420
420
await make_and_send_spend_bundle (
@@ -435,8 +435,8 @@ async def test_singleton_fast_forward_different_block(is_eligible_for_ff: bool)
435
435
coin_id = singleton_child .name (), parent_id = singleton .name (), parent_parent_id = eve_coin_spend .coin .name ()
436
436
)
437
437
# Now let's spend the first version again (despite being already spent by now)
438
- remaining_spend_solution = SerializedProgram .from_program (
439
- Program . to ( [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]])
438
+ remaining_spend_solution = SerializedProgram .to (
439
+ [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]]
440
440
)
441
441
remaining_coin_spend = CoinSpend (remaining_coin , IDENTITY_PUZZLE , remaining_spend_solution )
442
442
status , error = await make_and_send_spend_bundle (
@@ -494,8 +494,8 @@ async def test_singleton_fast_forward_same_block() -> None:
494
494
# Spend also a remaining coin. Change amount to create a new coin ID.
495
495
# The test assumes any odd amount is a singleton, so we must keep it
496
496
# even
497
- remaining_spend_solution = SerializedProgram .from_program (
498
- Program . to ( [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount - 2 ]])
497
+ remaining_spend_solution = SerializedProgram .to (
498
+ [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount - 2 ]]
499
499
)
500
500
remaining_coin_spend = CoinSpend (remaining_coin , IDENTITY_PUZZLE , remaining_spend_solution )
501
501
await make_and_send_spend_bundle (sim , sim_client , [remaining_coin_spend , singleton_coin_spend ], aggsig = sig )
@@ -567,8 +567,8 @@ async def test_mempool_items_immutability_on_ff() -> None:
567
567
singleton_coin_spend , singleton_signing_puzzle = make_singleton_coin_spend (
568
568
eve_coin_spend , singleton , inner_puzzle , inner_conditions
569
569
)
570
- remaining_spend_solution = SerializedProgram .from_program (
571
- Program . to ( [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]])
570
+ remaining_spend_solution = SerializedProgram .to (
571
+ [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]]
572
572
)
573
573
remaining_coin_spend = CoinSpend (remaining_coin , IDENTITY_PUZZLE , remaining_spend_solution )
574
574
await make_and_send_spend_bundle (
@@ -590,8 +590,8 @@ async def test_mempool_items_immutability_on_ff() -> None:
590
590
)
591
591
# Now let's spend the first version again (despite being already spent
592
592
# by now) to exercise its fast forward.
593
- remaining_spend_solution = SerializedProgram .from_program (
594
- Program . to ( [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]])
593
+ remaining_spend_solution = SerializedProgram .to (
594
+ [[ConditionOpcode .CREATE_COIN , IDENTITY_PUZZLE_HASH , remaining_coin .amount ]]
595
595
)
596
596
remaining_coin_spend = CoinSpend (remaining_coin , IDENTITY_PUZZLE , remaining_spend_solution )
597
597
sb = SpendBundle ([remaining_coin_spend , singleton_coin_spend ], sig )
0 commit comments