Skip to content

Commit

Permalink
Apply hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Aug 20, 2024
1 parent b42ad1d commit f8b298b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/Json/Friendly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ getRedeemerDetails aeo tb = do
friendlyRedeemer :: Ledger.Data (ShelleyLedgerEra era) -> ExUnits -> Aeson.Value
friendlyRedeemer scriptData ExUnits{exUnitsSteps = exSteps, exUnitsMem = exMemUnits} =
object
[ "data" .= (Aeson.String $ T.pack $ show $ unData scriptData)
[ "data" .= Aeson.String (T.pack $ show $ unData scriptData)
, "execution units"
.= object
[ "steps" .= (Aeson.Number $ fromIntegral exSteps)
, "memory" .= (Aeson.Number $ fromIntegral exMemUnits)
[ "steps" .= Aeson.Number (fromIntegral exSteps)
, "memory" .= Aeson.Number (fromIntegral exMemUnits)
]
]

Expand Down Expand Up @@ -372,7 +372,7 @@ getRedeemerDetails aeo tb = do
friendlyInput (Ledger.TxIn (Ledger.TxId txidHash) ix) =
Aeson.String $
T.pack $
(T.unpack $ hashToTextAsHex (extractHash txidHash)) ++ "#" ++ (show $ txIxToInt ix)
T.unpack (hashToTextAsHex (extractHash txidHash)) ++ "#" ++ show (txIxToInt ix)

friendlyTotalCollateral :: TxTotalCollateral era -> Aeson.Value
friendlyTotalCollateral TxTotalCollateralNone = Aeson.Null
Expand Down

0 comments on commit f8b298b

Please sign in to comment.