Skip to content

Commit

Permalink
fix(treasury_withdrawals): use build-raw in bootstrap
Browse files Browse the repository at this point in the history
Use `build-raw` instead of `build` to workaround an error message that
deposit return stake address is not registered.
  • Loading branch information
mkoura committed Dec 18, 2024
1 parent 918c385 commit 4699a33
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,18 @@ def test_enact_treasury_withdrawals(
],
)

actions_deposit_combined = action_deposit_amt * actions_num

if conway_common.is_in_bootstrap(cluster_obj=cluster):
reqc.cip026_03.start(url=helpers.get_vcs_link())
with pytest.raises(clusterlib.CLIError) as excinfo:
clusterlib_utils.build_and_submit_tx(
cluster_obj=cluster,
name_template=f"{temp_template}_action_bootstrap",
src_address=pool_user_ug_treasury.payment.address,
use_build_cmd=True,
use_build_cmd=False,
tx_files=tx_files_action,
deposit=actions_deposit_combined + stake_deposit_amt,
)
err_str = str(excinfo.value)
assert "(DisallowedProposalDuringBootstrap" in err_str, err_str
Expand All @@ -211,8 +214,6 @@ def test_enact_treasury_withdrawals(
cluster_obj=cluster, start=1, stop=common.EPOCH_STOP_SEC_BUFFER
)

actions_deposit_combined = action_deposit_amt * actions_num

tx_output_action = clusterlib_utils.build_and_submit_tx(
cluster_obj=cluster,
name_template=f"{temp_template}_action_build_raw",
Expand Down

0 comments on commit 4699a33

Please sign in to comment.