Skip to content

Commit

Permalink
Merge pull request #571 from mkoura/update_proposal_fix
Browse files Browse the repository at this point in the history
Fix update proposals in Alonzo with Mary-era Tx
  • Loading branch information
mkoura committed Jun 16, 2021
2 parents f31cfd3 + 1ca4b23 commit b6e3838
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cardano_node_tests/tests/test_governance.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,14 @@ def test_update_proposal(
name="minUTxOValue",
)
)
if VERSIONS.cluster_era >= VERSIONS.ALONZO:
if VERSIONS.transaction_era >= VERSIONS.ALONZO:
update_proposals.extend(
[
clusterlib_utils.UpdateProposal(
arg="--utxo-cost-per-word",
value=2,
name="utxoCostPerWord",
),
clusterlib_utils.UpdateProposal(
arg="--price-execution-steps",
value=2,
Expand Down Expand Up @@ -206,7 +211,7 @@ def test_update_proposal(
update_proposals=update_proposals,
)

if VERSIONS.cluster_era >= VERSIONS.ALONZO:
if VERSIONS.transaction_era >= VERSIONS.ALONZO:
protocol_params = cluster_update_proposal.get_protocol_params()
assert protocol_params["maxTxExecutionUnits"]["memory"] == max_tx_execution_units
assert protocol_params["maxTxExecutionUnits"]["steps"] == max_tx_execution_units
Expand Down

0 comments on commit b6e3838

Please sign in to comment.