Skip to content

Commit

Permalink
Fix calls to cardano-cli hash
Browse files Browse the repository at this point in the history
The `hash` command was moved from `conway governance` group to top level.
  • Loading branch information
mkoura committed Jul 4, 2024
1 parent f574128 commit d936faa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cardano_clusterlib/conway_gov_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def get_anchor_data_hash(
raise AssertionError(msg)

out_hash = (
self._clusterlib_obj.cli(["governance", "hash", "anchor-data", *content_args])
self._clusterlib_obj.cli(
["cardano-cli", "hash", "anchor-data", *content_args], add_default_args=False
)
.stdout.rstrip()
.decode("ascii")
)
Expand All @@ -117,9 +119,11 @@ def get_script_hash(
Returns:
str: A hash string.
"""
# TODO: make it a top-level function to reflect `cardano-cli hash`
out_hash = (
self._clusterlib_obj.cli(
["governance", "hash", "script", "--script-file", str(script_file)]
["cardano-cli", "hash", "script", "--script-file", str(script_file)],
add_default_args=False,
)
.stdout.rstrip()
.decode("ascii")
Expand Down

0 comments on commit d936faa

Please sign in to comment.