Skip to content

Commit e1d1b42

Browse files
authored
Merge pull request crytic#1396 from crytic/changelog
Update CHANGELOG, fix typos and grammar
2 parents 8728316 + 3209d46 commit e1d1b42

File tree

11 files changed

+18
-14
lines changed

11 files changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
## Unreleased
22

33
* feat: show which project is being fuzzed (#1381)
4+
* feat: keyboard navigation for the UI (Tab, PgUp, PgDown, arrows) (#1386)
45
* ARM64 Docker containers (#1352)
6+
* ARM64 Linux builds (#1377)
57
* Fix worker crashes when shrinking empty reproducers (#1378)
6-
* Upgrade `hevm` to reduce memory usage on certain scenarios (#1346)
8+
* Improved UI responsiveness (#1387)
9+
* Update `hevm` to reduce memory usage on certain scenarios (#1346)
10+
* Update `hevm` to fix multiple deployments under `prank`ing cheatcodes (#1377)
11+
* Echidna is now built with GHC 9.8.4 (#1377)
712

813
## 2.2.6
914

lib/Echidna/ABI.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ fixAbiInt n x =
218218
else AbiInt n (x `mod` (2 ^ (n - 1) - 1))
219219

220220
-- | Given a way to generate random 'Word8's and a 'ByteString' b of length l,
221-
-- generate between 0 and 2l 'Word8's and add insert them into b at random indices.
221+
-- generate between 0 and 2l 'Word8's and insert them into b at random indices.
222222
addChars :: MonadRandom m => m Word8 -> ByteString -> m ByteString
223223
addChars c b = foldM withR b . enumFromTo 0 =<< rand where
224224
rand = getRandomR (0, BS.length b - 1)

lib/Echidna/Campaign.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ callseq vm txSeq = do
417417
_ -> Nothing
418418
_ -> Nothing
419419

420-
-- | Add transactions to the corpus discarding reverted ones
420+
-- | Add transactions to the corpus, discarding reverted ones
421421
addToCorpus :: Int -> [(Tx, (VMResult Concrete RealWorld, Gas))] -> Corpus -> Corpus
422422
addToCorpus n res corpus =
423423
if null rtxs then corpus else Set.insert (n, rtxs) corpus
@@ -441,7 +441,7 @@ execTxOptC vm tx = do
441441
pure (res, vm')
442442

443443
-- | Given current `gasInfo` and a sequence of executed transactions, updates
444-
-- information on highest gas usage for each call
444+
-- information on the highest gas usage for each call
445445
updateGasInfo
446446
:: [(Tx, (VMResult Concrete RealWorld, Gas))]
447447
-> [Tx]

lib/Echidna/Shrink.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ shrinkTest
3030
shrinkTest vm test = do
3131
env <- ask
3232
case test.state of
33-
-- If we run out of tries to shrink, return the sequence as we have them
33+
-- If we run out of tries to shrink, return the sequence as we have it
3434
Large i | i >= env.cfg.campaignConf.shrinkLimit && not (isOptimizationTest test) ->
3535
pure $ Just test { state = Solved }
3636
Large i ->
@@ -116,7 +116,7 @@ shrinkSeq vm f v txs = do
116116
-- | Simplify a sequence of transactions reducing the complexity of its arguments (using shrinkTx)
117117
-- and then reducing its sender (using shrinkSender)
118118
shrunk = mapM (shrinkSender <=< shrinkTx) txs
119-
-- | Simplifiy a sequence of transactions randomly dropping one transaction (with uniform selection)
119+
-- | Simplify a sequence of transactions randomly dropping one transaction (with uniform selection)
120120
shorten = (\i -> take i txs ++ drop (i + 1) txs) <$> getRandomR (0, length txs)
121121

122122
-- | Given a transaction, replace the sender of the transaction by another one

lib/Echidna/Solidity.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ compileContracts solConf fp = do
9898
-- | OS-specific path to the "null" file, which accepts writes without storing them
9999
nullFilePath :: String
100100
nullFilePath = if os == "mingw32" then "\\\\.\\NUL" else "/dev/null"
101-
-- clean up previous artifacts
101+
-- clean up previous artifact files
102102
removeJsonFiles "crytic-export"
103103
mconcat . NE.toList <$> mapM compileOne fp
104104

lib/Echidna/Types/Campaign.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ data CampaignConf = CampaignConf
3737
, corpusDir :: Maybe FilePath
3838
-- ^ Directory to load and save lists of transactions
3939
, mutConsts :: MutationConsts Integer
40-
-- ^ Directory to load and save lists of transactions
40+
-- ^ Mutation constants for fuzzing
4141
, coverageFormats :: [CoverageFileType]
4242
-- ^ List of file formats to save coverage reports
4343
, workers :: Maybe Word8

lib/Echidna/Types/Solidity.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ instance Show SolException where
5151
NoCryticCompile -> "crytic-compile not installed or not found in PATH. To install it, run:\n pip install crytic-compile"
5252
InvalidMethodFilters f -> "Applying the filter " ++ show f ++ " to the methods produces an empty list. Are you filtering the correct functions using `filterFunctions` or fuzzing the correct contract?"
5353
SetUpCallFailed -> "Calling the setUp() function failed (revert, out-of-gas, sending ether to a non-payable constructor, etc.)"
54-
DeploymentFailed a t -> "Deploying the contract " ++ show a ++ " failed (revert, out-of-gas, sending ether to an non-payable constructor, etc.):\n" ++ unpack t
54+
DeploymentFailed a t -> "Deploying the contract " ++ show a ++ " failed (revert, out-of-gas, sending ether to a non-payable constructor, etc.):\n" ++ unpack t
5555
OutdatedSolcVersion v -> "Solc version " ++ toString v ++ " detected. Echidna doesn't support versions of solc before " ++ toString minSupportedSolcVersion ++ ". Please use a newer version."
5656

5757

lib/Echidna/UI.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ui vm dict initialCorpus cliSelectedContract = do
194194

195195
liftIO $ killThread ticker
196196

197-
-- print final status regardless the last scheduled update
197+
-- print final status regardless of the last scheduled update
198198
liftIO printStatus
199199

200200
when (isJust conf.campaignConf.serverPort) $ do
@@ -293,7 +293,7 @@ monitor = do
293293
state <- get
294294
let updatedState = state { campaigns = c', status = Running, now, tests }
295295
newWidget <- liftIO $ runReaderT (campaignStatus updatedState) env
296-
-- purposedly using lazy modify here, so unnecesary widget states don't get computed
296+
-- intentionally using lazy modify here, so unnecessary widget states don't get computed
297297
modify $ const updatedState { campaignWidget = newWidget }
298298
AppEvent (FetchCacheUpdated contracts slots) ->
299299
modify' $ \state ->

src/test/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ runContract f selectedContract cfg workerType = do
9999
(_stopReason, finalState) <- flip runReaderT env $
100100
runWorker workerType (pure ()) vm dict 0 [] cfg.campaignConf.testLimit selectedContract
101101

102-
-- TODO: consider snapshotting the state so checking function don't need to
102+
-- TODO: consider snapshotting the state so checking functions don't need to
103103
-- be IO
104104
pure (env, finalState)
105105

src/test/Tests/Dapptest.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dapptestTests = testGroup "Dapptest Integration Testing"
1313
("testShrinking passed", solved "testShrinking"),
1414
("testFuzzFixedArray passed", solved "testFuzzFixedArray"),
1515
("testFuzzVariableArray passed", solved "testFuzzVariableArray"),
16-
("testFuzzVariableArray passed", solved "testFuzzVariableArray"),
1716
("testFuzzBytes1 passed", solved "testFuzzBytes1"),
1817
("testFuzzBytes14 passed", solved "testFuzzBytes14"),
1918
("testFuzzBytes32 passed", solved "testFuzzBytes32"),

0 commit comments

Comments
 (0)