- description: |
Create toJSON instance for `query drep-state` output. Haskell users can know use this type to parse back `query drep-state`'s output to a Haskell value automatically.
# uncomment types applicable to the change:
type:
- feature # introduces a new feature
# - breaking # the API has changed in a breaking way
- compatible # the API has changed but is non-breaking
# - optimisation # measurable performance improvements
# - refactoring # QoL changes
# - bugfix # fixes a defect
# - test # fixes/modifies tests
# - maintenance # not directly related to the code
# - release # related to a new release preparation
# - documentation # change in code docs, haddocks...
Execute the test running query drep-state with RECREATE_GOLDEN_FILES=1 cabal test cardano-testnet-test --test-options '-p "/CliQueries/"'. Observe that the test with the golden file still passes.
Checklist
[X] Commit sequence broadly makes sense and commits have useful messages
Changelog
Context
Fixes https://github.com/IntersectMBO/cardano-cli/issues/606
How to trust this PR
cardano-node
: https://github.com/IntersectMBO/cardano-node/pull/5943query drep-state
withRECREATE_GOLDEN_FILES=1 cabal test cardano-testnet-test --test-options '-p "/CliQueries/"'
. Observe that the test with the golden file still passes.Checklist