File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed
cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Alonzo
cardano-db-sync/src/Cardano/DbSync/Fix
cardano-db/src/Cardano/Db Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,3 @@ plutusDataEncLen = toShort $ toStrictByteString $ mconcat (encodeListLen 2 : (en
128
128
129
129
plutusDataEncIndef :: ShortByteString
130
130
plutusDataEncIndef = toShort $ toStrictByteString $ encodeList plutusData2
131
-
132
- -- toBinaryPlutus :: AlonzoEraScript era => AlonzoScript era -> PlutusBinary
133
- -- toBinaryPlutus as = case mkPlutusScript as of
134
- -- Nothing -> panic "expected Alonzo script"
135
- -- PlutusScript (Plutus _ sbs) -> sbs
Original file line number Diff line number Diff line change @@ -110,18 +110,11 @@ findWrongPlutusScripts tracer =
110
110
Just prevPoint
111
111
112
112
hashPlutusScript dbScript = do
113
- -- lang <- getLang -- TODO: Conway
114
113
bytes <- maybeToEither " No bytes found for plutus script" id $ DB_V_13_0. scriptBytes dbScript
115
114
let script :: AlonzoScript StandardAlonzo = PlutusScript (AlonzoPlutusV1 (Plutus $ PlutusBinary $ SBS. toShort bytes))
116
115
let hsh :: Ledger. ScriptHash StandardCrypto = Ledger. hashScript @ StandardAlonzo script
117
116
Right $ Generic. unScriptHash hsh
118
117
119
- -- where
120
- -- getLang = case DB_V_13_0.scriptType dbScript of
121
- -- PlutusV1 -> Right Ledger.PlutusV1
122
- -- PlutusV2 -> Right Ledger.PlutusV2
123
- -- _ -> Left "Non plutus script found where it shouldn't."
124
-
125
118
fixPlutusScripts :: MonadIO m => Trace IO Text -> CardanoBlock -> FixPlutusScripts -> ReaderT SqlBackend m ()
126
119
fixPlutusScripts tracer cblk fpss = do
127
120
mapM_ fixData $ scriptsInfo fpss
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ share
578
578
DrepRegistration
579
579
txId TxId noreference
580
580
certIndex Word16
581
- deposit Int64 Maybe -- Needs to allow negaitve values.
581
+ deposit Int64 Maybe
582
582
votingAnchorId VotingAnchorId Maybe noreference
583
583
drepHashId DrepHashId noreference
584
584
You can’t perform that action at this time.
0 commit comments