Skip to content

feat(plutus): test small return collateral raw#3548

Merged
mkoura merged 1 commit into
masterfrom
small-return-collateral-raw
Jul 23, 2026
Merged

feat(plutus): test small return collateral raw#3548
mkoura merged 1 commit into
masterfrom
small-return-collateral-raw

Conversation

@mkoura

@mkoura mkoura commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Add test_minting_with_small_return_collateral for build-raw, a counterpart of the existing transaction build test. Submit a minting tx whose return collateral output is below the min UTxO value and check it fails with BabbageOutputTooSmallUTxO, both with and without the total collateral field.

Add `test_minting_with_small_return_collateral` for `build-raw`,
a counterpart of the existing `transaction build` test. Submit a
minting tx whose return collateral output is below the min UTxO
value and check it fails with `BabbageOutputTooSmallUTxO`, both
with and without the total collateral field.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Plutus V2+ negative minting test suite for transaction build-raw by adding coverage for transactions that specify a return-collateral output below the minimum UTxO value, ensuring the submission fails with the expected ledger error.

Changes:

  • Added test_minting_with_small_return_collateral to validate failure (BabbageOutputTooSmallUTxO) when return collateral is below min UTxO.
  • Parameterized the new test to run both with and without the total_collateral_amount field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cardano_node_tests/tests/tests_plutus_v2/test_mint_negative_raw.py
@mkoura
mkoura merged commit 357a6c5 into master Jul 23, 2026
4 checks passed
@mkoura
mkoura deleted the small-return-collateral-raw branch July 23, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants