Skip to content

Commit

Permalink
Leverage str_to_tail in str_to_tail_hash (#17132)
Browse files Browse the repository at this point in the history
Leverage str_to_tail in str_to_tail_hash.
  • Loading branch information
AmineKhaldi authored Dec 22, 2023
1 parent a4d5792 commit 36f138a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wallet/cat_wallet/test_offer_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def str_to_tail(tail_str: str) -> Program:


def str_to_tail_hash(tail_str: str) -> bytes32:
return Program.to([3, [], [1, tail_str], []]).get_tree_hash()
return str_to_tail(tail_str).get_tree_hash()


def str_to_cat_hash(tail_str: str) -> bytes32:
Expand Down

0 comments on commit 36f138a

Please sign in to comment.