File tree 2 files changed +3
-3
lines changed
cardano-api/src/Cardano/Api
cardano-cli/src/Cardano/CLI/Shelley/Run
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -490,9 +490,9 @@ data ScriptDataJsonBytesError
490
490
491
491
instance Error ScriptDataJsonBytesError where
492
492
displayError (ScriptDataJsonBytesErrorValue e) =
493
- " Error decoding ScriptData JSON value: " <> show e
493
+ " Error decoding ScriptData JSON value: " <> displayError e
494
494
displayError (ScriptDataJsonBytesErrorInvalid e) =
495
- " ScriptData is invalid: " <> show e
495
+ " ScriptData is invalid: " <> displayError e
496
496
497
497
498
498
-- | This allows us to take JSON formatted ScriptData and encode it in the CDDL format
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ readScriptDataOrFile (ScriptDataJsonFile fp) = do
366
366
sDataValue <- hoistEither . first (ScriptDataErrorJsonParse fp) $ Aeson. eitherDecode sDataBs
367
367
hoistEither
368
368
. first ScriptDataErrorJsonBytes
369
- $ scriptDataJsonToHashable ScriptDataJsonNoSchema sDataValue
369
+ $ scriptDataJsonToHashable ScriptDataJsonDetailedSchema sDataValue
370
370
371
371
readScriptDataOrFile (ScriptDataCborFile fp) = do
372
372
origBs <- handleIOExceptT (ScriptDataErrorFile . FileIOError fp) (BS. readFile fp)
You can’t perform that action at this time.
0 commit comments