cardano-node
cardano-node copied to clipboard
[FR] - cli query utxo cmd only display valid UTF-8 inline datum byetstrings
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: 43393ac88faa99986ecaa0be409e8b6353f5e9fe
Closing this. If this is still relevant please reopen.
Still relevant.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.