Skip to content

Commit

Permalink
Merge pull request #247 from input-output-hk/fix_hash
Browse files Browse the repository at this point in the history
Fix calls to `cardano-cli hash`
  • Loading branch information
mkoura authored Jul 4, 2024
2 parents f574128 + d936faa commit 8a1d937
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 8a1d937

Please sign in to comment.