Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Oct 26, 2023
1 parent aaa0046 commit 31f0f31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano-api/internal/Cardano/Api/ProtocolParameters.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ fromBabbagePParamsUpdate :: Ledger.Crypto crypto
-> ProtocolParametersUpdate
fromBabbagePParamsUpdate ppu =
(fromBabbageCommonPParamsUpdate ppu) {
protocolUpdateProtocolVersion = (\(Ledger.ProtVer a b) -> (Ledger.getVersion a,b)) <$>
strictMaybeToMaybe (ppu ^. ppuProtocolVersionL)
protocolUpdateProtocolVersion = (\(Ledger.ProtVer a b) -> (Ledger.getVersion a,b)) <$>
strictMaybeToMaybe (ppu ^. ppuProtocolVersionL)
}

fromConwayPParamsUpdate :: BabbageEraPParams ledgerera
Expand Down
11 changes: 11 additions & 0 deletions s
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/run/current-system/sw/bin/bash
for x in $(git ls-tree --full-tree --name-only -r HEAD cardano-api
); do
if [ "${x##*.}" == "hs" ]; then
if grep -qE '^#' $x; then
echo "$x contains CPP. Skipping."
else
stylish-haskell -i $x
fi
fi
done

0 comments on commit 31f0f31

Please sign in to comment.