Skip to content

Commit 0459293

Browse files
committed
Fix remaining comments
1 parent 0a89895 commit 0459293

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Alonzo/ScriptsExamples.hs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,3 @@ plutusDataEncLen = toShort $ toStrictByteString $ mconcat (encodeListLen 2 : (en
128128

129129
plutusDataEncIndef :: ShortByteString
130130
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

cardano-db-sync/src/Cardano/DbSync/Fix/PlutusScripts.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,11 @@ findWrongPlutusScripts tracer =
110110
Just prevPoint
111111

112112
hashPlutusScript dbScript = do
113-
-- lang <- getLang -- TODO: Conway
114113
bytes <- maybeToEither "No bytes found for plutus script" id $ DB_V_13_0.scriptBytes dbScript
115114
let script :: AlonzoScript StandardAlonzo = PlutusScript (AlonzoPlutusV1 (Plutus $ PlutusBinary $ SBS.toShort bytes))
116115
let hsh :: Ledger.ScriptHash StandardCrypto = Ledger.hashScript @StandardAlonzo script
117116
Right $ Generic.unScriptHash hsh
118117

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-
125118
fixPlutusScripts :: MonadIO m => Trace IO Text -> CardanoBlock -> FixPlutusScripts -> ReaderT SqlBackend m ()
126119
fixPlutusScripts tracer cblk fpss = do
127120
mapM_ fixData $ scriptsInfo fpss

cardano-db/src/Cardano/Db/Schema.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ share
578578
DrepRegistration
579579
txId TxId noreference
580580
certIndex Word16
581-
deposit Int64 Maybe -- Needs to allow negaitve values.
581+
deposit Int64 Maybe
582582
votingAnchorId VotingAnchorId Maybe noreference
583583
drepHashId DrepHashId noreference
584584

0 commit comments

Comments
 (0)