Skip to content

Add build-raw reference script spending test#6521

Open
Jimbo4350 wants to merge 2 commits intomasterfrom
issue-1363-build-raw-ref-script-test
Open

Add build-raw reference script spending test#6521
Jimbo4350 wants to merge 2 commits intomasterfrom
issue-1363-build-raw-ref-script-test

Conversation

@Jimbo4350
Copy link
Copy Markdown
Contributor

Summary

  • Add hprop_build_raw_ref_script_spend integration test that validates spending a UTxO locked at a PlutusV3 script address via a reference script using cardano-cli transaction build-raw
  • Registers the new test module in the cabal file and test runner

Test plan

  • Run: DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/Build Raw Ref Script/"'
  • Verify the test passes end-to-end on CI (requires nix for VRF libraries)

@Jimbo4350 Jimbo4350 marked this pull request as ready for review April 9, 2026 18:26
@Jimbo4350 Jimbo4350 requested a review from a team as a code owner April 9, 2026 18:26
Add hprop_build_raw_ref_script_spend test that validates spending a
UTxO locked at a PlutusV3 script address via a reference script using
cardano-cli transaction build-raw instead of the auto-balancing
transaction build command.
@Jimbo4350 Jimbo4350 force-pushed the issue-1363-build-raw-ref-script-test branch from 80e05e3 to e98385a Compare April 9, 2026 19:33
Comment on lines +43 to +44
-- | Test spending a reference script UTxO using @transaction build-raw@.
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/Build Raw Ref Script/"'@
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.

this is duplicated, - the same as in the exports list

Comment on lines +8 to +9
-- | Execute tests in this module with:
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test -- -p "/Build Raw Ref Script/"@
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.

wrong haddock, -- | is used before symbol

[ eraName
, "transaction", "build"
, "--change-address", Text.unpack $ paymentKeyInfoAddr wallet0
, "--tx-in", Text.unpack $ renderTxIn txinPublish
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.

Suggested change
, "--tx-in", Text.unpack $ renderTxIn txinPublish
, "--tx-in", prettyShow txinPublish

-- Step 3: Query protocol parameters
void $ execCli' execConfig
[ eraName, "query", "protocol-parameters"
, "--cardano-mode"
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.

Suggested change
, "--cardano-mode"

this is redundant, no?

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