You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] - query utxo --output-text renders dangling "+ " after value for pre-Babbage outputs #1398
cardano-cli latest query utxo --output-text renders a dangling + separator after the lovelace amount for pre-Babbage era outputs - trailing + and space with nothing after it. This is an unannounced change to the text output format in cardano-cli-11.1.0.0 that breaks scripts parsing this output.
Steps to reproduce
On a local testnet that is still in Shelley era (e.g. during a staged hard-fork bootstrap):
Commit f2f7d4d ("Remove non-Byron TxOut CtxTx/CtxUTxO usage from cardano-cli", merged in #1379) rewrote utxoToText in cardano-cli/src/Cardano/CLI/EraBased/Query/Run.hs to render from ledger types. The datum is now read via datumTxOutL, which only exists for Babbage+ eras, so pre-Babbage outputs render an empty placeholder - but the " + " separator is still emitted unconditionally:
, ""<> printableValue <>" + "<> printableDatum
Suggested fix
Suppress the " + " separator when the datum placeholder is empty.
Add a golden test for query utxo --output-text so future format changes are caught.
Activity
Fix dangling " + " after the value in `query utxo --output-text` for …
Add golden tests for the text rendering of `query utxo`
Fix dangling " + " after the value in `query utxo --output-text` for …
Add golden tests for the text rendering of `query utxo`
Fix dangling " + " after the value in `query utxo --output-text` for …
Add golden tests for the text rendering of `query utxo`
Fix dangling " + " after the value in `query utxo --output-text` for …
Add golden tests for the text rendering of `query utxo`
Fix dangling " + " after the value in `query utxo --output-text` for …
Add golden tests for the text rendering of `query utxo`