Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Dec 5, 2024
1 parent 443c904 commit 8c95cb8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/EVM/Solidity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,7 @@ toCode contractName t = case BS16.decodeBase16Untyped (encodeUtf8 t) of
else error $ T.unpack ("Error toCode:" <> e <> ", in " <> contractName)

solc :: Language -> Text -> IO Text
solc lang src =
T.pack <$> readProcess
"solc"
["--standard-json"]
(T.unpack $ stdjson lang src)
solc lang src = T.pack <$> readProcess "solc" ["--standard-json"] (T.unpack $ stdjson lang src)

data Language = Solidity | Yul
deriving (Show)
Expand All @@ -683,8 +679,7 @@ data StandardJSON = StandardJSON Language Text
instance ToJSON StandardJSON where
toJSON (StandardJSON lang src) =
object [ "language" .= show lang
, "sources" .= object ["hevm.sol" .=
object ["content" .= src]]
, "sources" .= object ["hevm.sol" .= object ["content" .= src]]
, "settings" .=
object [ "outputSelection" .=
object ["*" .=
Expand Down

0 comments on commit 8c95cb8

Please sign in to comment.