File tree Expand file tree Collapse file tree
cardano-cli/src/Cardano/CLI Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,7 +227,12 @@ readAnyScript anyScriptFp = do
227227 Right (Exp'. AnyPlutusScript plutusScript) -> return $ Exp. AnyPlutusScript plutusScript
228228 Left e ->
229229 throwCliError $ " Failed to decode Plutus script: " <> show e
230- Nothing -> throwCliError $ " Unsupported script language: " <> anyScriptType
230+ -- Simple script text envelope format
231+ Nothing ->
232+ case Exp. obtainCommonConstraints (Exp. useEra @ era ) (Exp. deserialiseSimpleScript scriptBs) of
233+ Right ss -> return $ Exp. AnySimpleScript ss
234+ Left e ->
235+ throwCliError $ " Failed to decode Simple script: " <> show (e :: CBOR. DecoderError )
231236
232237-- | Read a script file. The file can either be in the text envelope format
233238-- wrapping the binary representation of any of the supported script languages,
You can’t perform that action at this time.
0 commit comments