@@ -1818,7 +1818,7 @@ def test_create_coin_different_parent(self):
1818
1818
assert c .conditions == [
1819
1819
(
1820
1820
opcode .value ,
1821
- [ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([10 ])])],
1821
+ [ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([10 ]), b"" ])],
1822
1822
)
1823
1823
]
1824
1824
@@ -1832,11 +1832,11 @@ def test_create_coin_different_puzzhash(self):
1832
1832
assert len (npc_result .npc_list ) == 1
1833
1833
opcode = ConditionOpcode .CREATE_COIN
1834
1834
assert (
1835
- ConditionWithArgs (opcode , [puzzle_hash_1 .encode ("ascii" ), bytes ([5 ])])
1835
+ ConditionWithArgs (opcode , [puzzle_hash_1 .encode ("ascii" ), bytes ([5 ]), b"" ])
1836
1836
in npc_result .npc_list [0 ].conditions [0 ][1 ]
1837
1837
)
1838
1838
assert (
1839
- ConditionWithArgs (opcode , [puzzle_hash_2 .encode ("ascii" ), bytes ([5 ])])
1839
+ ConditionWithArgs (opcode , [puzzle_hash_2 .encode ("ascii" ), bytes ([5 ]), b"" ])
1840
1840
in npc_result .npc_list [0 ].conditions [0 ][1 ]
1841
1841
)
1842
1842
@@ -1849,19 +1849,19 @@ def test_create_coin_different_amounts(self):
1849
1849
assert len (npc_result .npc_list ) == 1
1850
1850
opcode = ConditionOpcode .CREATE_COIN
1851
1851
assert (
1852
- ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([5 ])])
1852
+ ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([5 ]), b"" ])
1853
1853
in npc_result .npc_list [0 ].conditions [0 ][1 ]
1854
1854
)
1855
1855
assert (
1856
- ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([4 ])])
1856
+ ConditionWithArgs (opcode , [puzzle_hash .encode ("ascii" ), bytes ([4 ]), b"" ])
1857
1857
in npc_result .npc_list [0 ].conditions [0 ][1 ]
1858
1858
)
1859
1859
1860
1860
def test_create_coin_with_hint (self ):
1861
1861
# CREATE_COIN
1862
1862
puzzle_hash_1 = "abababababababababababababababab"
1863
1863
hint = "12341234123412341234213421341234"
1864
- npc_result = generator_condition_tester (f'(51 "{ puzzle_hash_1 } " 5 "{ hint } ")' )
1864
+ npc_result = generator_condition_tester (f'(51 "{ puzzle_hash_1 } " 5 ( "{ hint } ") )' )
1865
1865
assert npc_result .error is None
1866
1866
assert len (npc_result .npc_list ) == 1
1867
1867
opcode = ConditionOpcode .CREATE_COIN
0 commit comments