Skip to content

Commit

Permalink
Adds support constitution script hash in gov action group
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinpkl committed Jul 10, 2024
1 parent b9a6e7c commit e3ff559
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cardano_clusterlib/conway_gov_action_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def create_constitution(
anchor_data_hash: str,
constitution_url: str,
constitution_hash: str,
constitution_script_hash: str = "",
deposit_return_stake_vkey: str = "",
deposit_return_stake_vkey_file: tp.Optional[itp.FileType] = None,
deposit_return_stake_key_hash: str = "",
Expand Down Expand Up @@ -170,6 +171,13 @@ def create_constitution(
"--constitution-hash",
str(constitution_hash),
]
if constitution_script_hash:
constitution_anchor_args.extend(
[
"--constitution-script-hash",
str(constitution_script_hash),
]
)

self._clusterlib_obj.cli(
[
Expand Down

0 comments on commit e3ff559

Please sign in to comment.