Add build-raw reference script spending test#6521
Open
Conversation
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.
80e05e3 to
e98385a
Compare
carbolymer
reviewed
Apr 9, 2026
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/"'@ |
Contributor
There was a problem hiding this comment.
this is duplicated, - the same as in the exports list
carbolymer
reviewed
Apr 9, 2026
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/"@ |
Contributor
There was a problem hiding this comment.
wrong haddock, -- | is used before symbol
carbolymer
reviewed
Apr 9, 2026
| [ eraName | ||
| , "transaction", "build" | ||
| , "--change-address", Text.unpack $ paymentKeyInfoAddr wallet0 | ||
| , "--tx-in", Text.unpack $ renderTxIn txinPublish |
Contributor
There was a problem hiding this comment.
Suggested change
| , "--tx-in", Text.unpack $ renderTxIn txinPublish | |
| , "--tx-in", prettyShow txinPublish |
carbolymer
reviewed
Apr 9, 2026
| -- Step 3: Query protocol parameters | ||
| void $ execCli' execConfig | ||
| [ eraName, "query", "protocol-parameters" | ||
| , "--cardano-mode" |
Contributor
There was a problem hiding this comment.
Suggested change
| , "--cardano-mode" |
this is redundant, no?
carbolymer
approved these changes
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hprop_build_raw_ref_script_spendintegration test that validates spending a UTxO locked at a PlutusV3 script address via a reference script usingcardano-cli transaction build-rawTest plan
DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/Build Raw Ref Script/"'