Skip to content

Commit

Permalink
Replace forM_ with mapM
Browse files Browse the repository at this point in the history
Co-authored-by: Mateusz Galazyn <[email protected]>
  • Loading branch information
palas and carbolymer committed Oct 31, 2024
1 parent ca3eee5 commit d854349
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cardano-cli/src/Cardano/CLI/EraBased/Transaction/HashCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ checkVotingProcedureHashes eon (Shelley.VotingProcedures (L.VotingProcedures vot
Shelley.shelleyBasedEraConstraints eon $
forM_
voterMap
( \vpMap ->
forM_
vpMap
( \(L.VotingProcedure _ mAnchor) ->
forM_ mAnchor checkAnchorMetadataHash
)
( mapM $ \(L.VotingProcedure _ mAnchor) ->
forM_ mAnchor checkAnchorMetadataHash
)

-- | Find references to anchor data in proposals and check the hashes are valid
Expand Down

0 comments on commit d854349

Please sign in to comment.