Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Jan 17, 2025
1 parent 529ffa9 commit e59973c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Script/Spend/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ readSpendScriptWitness
=> ShelleyBasedEra era -> CliSpendScriptRequirements -> t m (SpendScriptWitness era)
readSpendScriptWitness sbe spendScriptReq =
case spendScriptReq of
OnDiskSimpleOrPlutusScript (OnDiskSimpleOrPlutusScriptCliArgs simpleFp) -> do
OnDiskSimpleOrPlutusScript (OnDiskSimpleCliArgs simpleFp) -> do
let sFp = unFile simpleFp
s <-
modifyError (fmap (CliScriptWitnessError . SimpleScriptWitnessDecodeError)) $ readFileSimpleScript sFp
Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Script/Spend/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data SimpleOrPlutusScriptCliArgs
(ScriptDatumOrFileSpending) -- ^ Optional Datum (CIP-69)
ScriptDataOrFile -- ^ Redeemer
ExecutionUnits
| OnDiskSimpleOrPlutusScriptCliArgs
| OnDiskSimpleCliArgs
(File ScriptInAnyLang In)

deriving Show
Expand All @@ -49,7 +49,7 @@ createPlutusScriptFromCliArgs
-> CliSpendScriptRequirements
createPlutusScriptFromCliArgs scriptFp (Just (datumFile, redeemerFile, execUnits)) =
OnDiskSimpleOrPlutusScript $ OnDiskPlutusScriptCliArgs scriptFp datumFile redeemerFile execUnits
createPlutusScriptFromCliArgs scriptFp Nothing = OnDiskSimpleOrPlutusScript $ OnDiskSimpleOrPlutusScriptCliArgs scriptFp
createPlutusScriptFromCliArgs scriptFp Nothing = OnDiskSimpleOrPlutusScript $ OnDiskSimpleCliArgs scriptFp


newtype SimpleRefScriptCliArgs = SimpleRefScriptArgs TxIn deriving Show
Expand Down

0 comments on commit e59973c

Please sign in to comment.