Skip to content

cardano-testnet | Add test submitting transaction with reference inputs and actual datums #6174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carbolymer
Copy link
Contributor

@carbolymer carbolymer commented Apr 10, 2025

Description

Tests IntersectMBO/cardano-api#803

Stacked on top of:

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch from 72e96a7 to e6c49a9 Compare April 14, 2025 18:44
@carbolymer carbolymer self-assigned this Apr 14, 2025
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 4 times, most recently from e633ef2 to f657b53 Compare April 24, 2025 14:23
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 4 times, most recently from 9d19c0a to 17f89d5 Compare May 1, 2025 10:52
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 2 times, most recently from 790ae17 to 9643429 Compare May 12, 2025 16:03
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 2 times, most recently from fa1c711 to 2b5aed5 Compare May 15, 2025 15:32
@carbolymer carbolymer marked this pull request as ready for review May 15, 2025 15:32
@carbolymer carbolymer requested review from a team as code owners May 15, 2025 15:32
@carbolymer carbolymer changed the title cardano-testnet | Add test submitting transaction with supplemental datums using cardano-api cardano-testnet | Add test submitting transaction with reference inputs and actual datums May 15, 2025
@@ -148,6 +150,18 @@ isTestnetNodeSpo = isJust . poolKeys
nodeSocketPath :: TestnetNode -> SocketPath
nodeSocketPath = File . H.sprocketSystemName . nodeSprocket

-- | Connection data for the first node in the testnet
node0ConnectionInfo :: MonadTest m => TestnetRuntime -> m LocalNodeConnectInfo
Copy link
Contributor

Choose a reason for hiding this comment

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

What about exposing an index parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I figured that for >0 indices, the connection info won't be that useful - those are relay nodes. I can add an index.

import qualified Hedgehog.Extras.Test.TestWatchdog as H


-- | Test providing actual datum to reference inputs containing datum hashes
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand what this means. Can you elaborate on what this test is testing and how this differs from "normal" datum usage.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added more comments.

@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 2 times, most recently from 7793a60 to e410166 Compare May 19, 2025 14:06
@carbolymer carbolymer requested a review from Jimbo4350 May 19, 2025 14:06
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch from e410166 to 5963444 Compare May 19, 2025 14:20
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch 2 times, most recently from 4f9f87c to fa3d95a Compare May 19, 2025 15:43
@carbolymer carbolymer force-pushed the mgalazyn/test/submit-tx-api-datum branch from fa3d95a to 1bd9228 Compare May 19, 2025 15:44
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