Skip to content

Commit 256c244

Browse files
authored
Merge pull request crytic#1417 from crytic/update-hevm
Update hevm to `9982c580ed19b88ebab9744d29d940fd2f0bd8c6`
2 parents 05c9ab0 + 3418d1f commit 256c244

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
(pkgs.haskellPackages.callCabal2nix "hevm" (pkgs.fetchFromGitHub {
5656
owner = "ethereum";
5757
repo = "hevm";
58-
rev = "1ee94f7772d42154fcf8df16681d3c6f25a4ecdd";
59-
sha256 = "sha256-UgdkkFw1BVjzqRz69FGpwfk/iPqtU5IUqybfAQIhXk8=";
58+
rev = "9982c580ed19b88ebab9744d29d940fd2f0bd8c6";
59+
sha256 = "sha256-B60aJo9EfIaTWuJaN06Wl1Br+rstzUAYGFBE5rX72Fs=";
6060
}) { secp256k1 = pkgs.secp256k1; })
6161
([
6262
pkgs.haskell.lib.compose.dontCheck

lib/Echidna/SymExec/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,4 +246,4 @@ exploreMethod method contract vm defaultSender conf veriOpts solvers rpcInfo con
246246
(_, models, partials) <- verifyInputs solvers veriOpts fetcher vm' (Just $ checkAssertions [0x1])
247247
let results = map fst models
248248
--liftIO $ mapM_ TIO.putStrLn partials
249-
return (map (modelToTx dst vm.block.timestamp vm.block.number method conf.solConf.sender defaultSender) results, map formatPartial partials)
249+
return (map (modelToTx dst vm.block.timestamp vm.block.number method conf.solConf.sender defaultSender) results, map (formatPartial . fst) partials)

src/test/Tests/Symbolic.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import Echidna.Types.Worker (WorkerType(..))
66

77
symbolicTests :: TestTree
88
symbolicTests = testGroup "Symbolic tests"
9-
[ testContract' "symbolic/verify.sol" Nothing (Just (>= solcV (0,8,0))) (Just "symbolic/verify.yaml") True SymbolicWorker
9+
[ testContract' "symbolic/verify.sol" Nothing (Just (>= solcV (0,6,9))) (Just "symbolic/verify.yaml") True SymbolicWorker
1010
[ ("simple passed", solved "simple")
1111
, ("array passed", solved "array")
1212
, ("negative passed", solved "negative")
1313
, ("close passed", solved "close")
1414
, ("far not verified", verified "far")
15-
, ("correct not verified", verified "correct")
16-
]
15+
, ("correct not verified", verified "correct")
16+
]
1717
-- This test is commented out because it requires a specific setup where both the FuzzWorker and SymbolicWorker are used.
1818
-- If you run the symbolic worker alone, it will hang indefinitely.
1919
--, testContract' "symbolic/explore.sol" Nothing Nothing (Just "symbolic/explore.yaml") True SymbolicWorker

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ packages:
66

77
extra-deps:
88
- git: https://github.com/ethereum/hevm.git
9-
commit: 1ee94f7772d42154fcf8df16681d3c6f25a4ecdd
9+
commit: 9982c580ed19b88ebab9744d29d940fd2f0bd8c6
1010

1111
- smt2-parser-0.1.0.1@sha256:1e1a4565915ed851c13d1e6b8bb5185cf5d454da3b43170825d53e221f753d77,1421
1212
- spawn-0.3@sha256:b91e01d8f2b076841410ae284b32046f91471943dc799c1af77d666c72101f02,1162

0 commit comments

Comments
 (0)