Skip to content

Conversation

@mkoura
Copy link
Contributor

@mkoura mkoura commented Apr 16, 2025

Corrected the output format for writeText and writeJson in writeStakePools function. Previously, writeText incorrectly outputed JSON and writeJson outputed text.

Changelog

- description: |
    Corrected the flipped text & JSON output format for `query stake-pools` function.
# 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...

Context

Fixes #1138

How to trust this PR

I've built the fixed binary and tested it.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

Corrected the output format for `writeText` and `writeJson` in
`writeStakePools` function. Previously, `writeText` incorrectly outputed
JSON and `writeJson` outputed text.
@mkoura mkoura changed the title Fix stakePools output format Fix stakePools query output format Apr 16, 2025
@carbolymer carbolymer added this pull request to the merge queue Apr 17, 2025
Merged via the queue into master with commit ad4884c Apr 17, 2025
25 of 27 checks passed
@carbolymer carbolymer deleted the mkoura/flip_json_text_out branch April 17, 2025 09:02
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.

query stake-pools --output-json outputs text

3 participants