Skip to content
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

[FR] - cli query utxo cmd only display valid UTF-8 inline datum byetstrings #4078

Open
catch-21 opened this issue Jun 22, 2022 · 2 comments
Open
Labels
comp: cardano-cli enhancement New feature or request era: babbage priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai type: enhancement An improvement on the existing functionality user type: internal Created by an IOG employee Vasil

Comments

@catch-21
Copy link
Contributor

Internal/External
Internal if an IOHK staff member.

Area
Other Any other topic (Delegation, Ranking, ...).

Describe the feature you'd like
The CLI's query utxo cmd attempts to decode bytestring inline datum even if it is not a valid UTF-8 value. For example, the 915e807fa63409181d1533195753e3170587b1edc089be670ab483da8f9bcd48 hash looks like:

ReferenceTxInsScriptsInlineDatumsInBabbageEra (ScriptDataBytes "\145^\128\DEL\166\&4\t\CAN\GS\NAK3\EMWS\227\ETB\ENQ\135\177\237\192\137\190g\n\180\131\218\143\155\205H")

If possible, it would be good to only display the decoded value when it is valid UTF-8 and display the hex value when it is not.

A valid UTF-8 value looks like:

ReferenceTxInsScriptsInlineDatumsInBabbageEra (ScriptDataBytes "no-script-here")

Additional context / screenshots
Node/Cli Version: 43393ac

@catch-21 catch-21 added enhancement New feature or request Vasil labels Jun 22, 2022
@CarlosLopezDeLara CarlosLopezDeLara added the priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai label Jun 22, 2022
@dorin100 dorin100 added type: enhancement An improvement on the existing functionality user type: internal Created by an IOG employee era: babbage comp: cardano-cli labels Oct 21, 2022
@Jimbo4350
Copy link
Contributor

Closing this. If this is still relevant please reopen.

@catch-21
Copy link
Contributor Author

catch-21 commented Nov 5, 2022

Still relevant.

@catch-21 catch-21 reopened this Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: cardano-cli enhancement New feature or request era: babbage priority low Issues/RPs that are low priority issues/PRs in relation to a minimum Shelley testnet and Shelley mai type: enhancement An improvement on the existing functionality user type: internal Created by an IOG employee Vasil
Projects
None yet
Development

No branches or pull requests

4 participants