Skip to content

Commit

Permalink
Update src/HEVM.hs
Browse files Browse the repository at this point in the history
Co-authored-by: dxo  <[email protected]>
  • Loading branch information
zoep and d-xo authored Nov 13, 2023
1 parent dcea80b commit f78a5fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/HEVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ rewritesToExpr cmap rewrites = foldM rewriteToExpr cmap rewrites

rewriteToExpr :: ContractMap -> Rewrite -> ActM ContractMap
rewriteToExpr cmap (Constant _) = pure cmap
rewriteToExpr cmap (Rewrite upd) = do
cmap' <- updateToExpr upd cmap
pure cmap'
rewriteToExpr cmap (Rewrite upd) = updateToExpr upd cmap

updatesToExpr :: [StorageUpdate] -> ContractMap -> ActM ContractMap
updatesToExpr upds initmap = foldM (flip updateToExpr) initmap upds
Expand Down

0 comments on commit f78a5fa

Please sign in to comment.