Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
stechu committed May 1, 2020
1 parent 23c35ea commit 01d3a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/atomic_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def htlc(tmpl_seller=alice,
type_cond = Txn.type_enum() == Int(1)
recv_cond = And(Txn.close_remainder_to() == Global.zero_address(),
Txn.receiver() == tmpl_seller,
Sha256(Arg(0)) == tmpl_secret)
tmpl_hash_fn(Arg(0)) == tmpl_secret)
esc_cond = And(Txn.close_remainder_to() == Global.zero_address(),
Txn.receiver() == tmpl_buyer,
Txn.first_valid() > Int(tmpl_timeout))
Expand Down

0 comments on commit 01d3a4a

Please sign in to comment.