Skip to content

Commit 7a519ed

Browse files
committed
feat(treasury_withdrawals): check discard duplicate proposals
Added check that duplicated proposals are discarded when building a transaction.
1 parent 67aaf79 commit 7a519ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cardano_node_tests/tests/tests_conway/test_treasury_withdrawals.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,21 @@ def test_enact_treasury_withdrawals(
153153
]
154154
[r.success() for r in (reqc.cli015, reqc.cip031a_06, reqc.cip031f, reqc.cip054_05)]
155155

156+
# Check that duplicated proposals are discarded when building the transaction.
157+
# This one is the same as one that already exists in `withdrawal_actions`,
158+
# and will not be taken into account.
159+
withdrawal_actions.append(
160+
cluster.g_conway_governance.action.create_treasury_withdrawal(
161+
action_name=f"{temp_template}_duplicated",
162+
transfer_amt=transfer_amts[0],
163+
deposit_amt=action_deposit_amt,
164+
anchor_url=anchor_data.url,
165+
anchor_data_hash=anchor_data.hash,
166+
funds_receiving_stake_vkey_file=recv_stake_addr_rec.vkey_file,
167+
deposit_return_stake_vkey_file=pool_user_ug_treasury.stake.vkey_file,
168+
)
169+
)
170+
156171
tx_files_action = clusterlib.TxFiles(
157172
certificate_files=[recv_stake_addr_reg_cert],
158173
proposal_files=[w.action_file for w in withdrawal_actions],

0 commit comments

Comments
 (0)