Skip to content

Commit

Permalink
Modify query utxo command to print literal newline characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Nov 30, 2021
1 parent 54119c8 commit e22021e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/Shelley/Run/Query.hs
Expand Up @@ -653,7 +653,7 @@ printUtxo shelleyBasedEra' txInOutTuple =
case shelleyBasedEra' of
ShelleyBasedEraShelley ->
let (TxIn (TxId txhash) (TxIx index), TxOut _ value _) = txInOutTuple
in Text.putStrLn $
in print . Text.unpack $
mconcat
[ Text.decodeLatin1 (hashToBytesAsHex txhash)
, textShowN 6 index
Expand All @@ -662,23 +662,23 @@ printUtxo shelleyBasedEra' txInOutTuple =

ShelleyBasedEraAllegra ->
let (TxIn (TxId txhash) (TxIx index), TxOut _ value _) = txInOutTuple
in Text.putStrLn $
in print . Text.unpack $
mconcat
[ Text.decodeLatin1 (hashToBytesAsHex txhash)
, textShowN 6 index
, " " <> printableValue value
]
ShelleyBasedEraMary ->
let (TxIn (TxId txhash) (TxIx index), TxOut _ value _) = txInOutTuple
in Text.putStrLn $
in print . Text.unpack $
mconcat
[ Text.decodeLatin1 (hashToBytesAsHex txhash)
, textShowN 6 index
, " " <> printableValue value
]
ShelleyBasedEraAlonzo ->
let (TxIn (TxId txhash) (TxIx index), TxOut _ value mDatum) = txInOutTuple
in Text.putStrLn $
in print . Text.unpack $
mconcat
[ Text.decodeLatin1 (hashToBytesAsHex txhash)
, textShowN 6 index
Expand Down

0 comments on commit e22021e

Please sign in to comment.