Skip to content

Commit

Permalink
Fix some typos in comments (#1238)
Browse files Browse the repository at this point in the history
Signed-off-by: momantech <cuimoman@qq.com>
  • Loading branch information
momantech authored Apr 18, 2024
1 parent 7ddf1bf commit 5b66fd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Echidna/Campaign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ isSuccessful =

-- | Run all the transaction sequences from the corpus and accumulate campaign
-- state. Can be used to minimize corpus as the final campaign state will
-- contain minized corpus without sequences that didn't increase the coverage.
-- contain minimized corpus without sequences that didn't increase the coverage.
replayCorpus
:: (MonadIO m, MonadThrow m, MonadRandom m, MonadReader Env m, MonadState WorkerState m)
=> VM Concrete RealWorld -- ^ VM to start replaying from
Expand Down
2 changes: 1 addition & 1 deletion lib/Echidna/Exec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ execTxWith executeTx tx = do
liftIO $ atomicWriteIORef cacheRef $ Map.insert addr (Just contract) cache
_ -> do
-- TODO: better error reporting in HEVM, when intermmittent
-- network eror then retry
-- network error then retry
liftIO $ atomicWriteIORef cacheRef $ Map.insert addr Nothing cache
logMsg $ "ERROR: Failed to fetch contract: " <> show q
-- TODO: How should we fail here? It could be a network error,
Expand Down
2 changes: 1 addition & 1 deletion lib/Echidna/Solidity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ readSolcBatch d = do
Left e ->
error $ "Failed to parse combined JSON file " <> (d </> f) <> "\n" <> e

-- | Given a list of files, use its extenstion to check if it is a precompiled
-- | Given a list of files, use its extension to check if it is a precompiled
-- contract or try to compile it and get a list of its contracts and a list of source
-- cache, throwing exceptions if necessary.
compileContracts
Expand Down

0 comments on commit 5b66fd2

Please sign in to comment.