Skip to content

Commit

Permalink
Fix faulty corpus transaction detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz committed Feb 2, 2024
1 parent 1d0c937 commit 8ecf7b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Echidna/Campaign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ replayCorpus
-> m ()
replayCorpus vm txSeqs =
forM_ (zip [1..] txSeqs) $ \(i, (file, txSeq)) -> do
let maybeFaultyTx = List.find (\tx -> LitAddr tx.dst `notElem` Map.keys vm.env.contracts) txSeq
let maybeFaultyTx =
List.find (\tx -> LitAddr tx.dst `notElem` Map.keys vm.env.contracts) $
List.filter (\case Tx { call = NoCall } -> False; _ -> True) txSeq
case maybeFaultyTx of
Nothing -> do
_ <- callseq vm txSeq
Expand Down

0 comments on commit 8ecf7b9

Please sign in to comment.