diff --git a/examples/rps/rps_contracts.py b/examples/rps/rps_contracts.py index 2eeac5e..15fde40 100644 --- a/examples/rps/rps_contracts.py +++ b/examples/rps/rps_contracts.py @@ -175,11 +175,11 @@ def make_script(diff: int, ctv_hash: bytes): ('m_a', IntType()), ('r_a', BytesType()), ] - alice_wins = StandardClause("tie", make_script( - 0, tmpl_alice_wins.get_standard_template_hash(0)), arg_specs, lambda _, __: tmpl_alice_wins) + tie = StandardClause("tie", make_script( + 0, tmpl_tie.get_standard_template_hash(0)), arg_specs, lambda _, __: tmpl_tie) bob_wins = StandardClause("bob_wins", make_script( 1, tmpl_bob_wins.get_standard_template_hash(0)), arg_specs, lambda _, __: tmpl_bob_wins) - tie = StandardClause("alice_wins", make_script( + alice_wins = StandardClause("alice_wins", make_script( 2, tmpl_tie.get_standard_template_hash(0)), arg_specs, lambda _, __: tmpl_tie) super().__init__(NUMS_KEY, [alice_wins, [bob_wins, tie]])