You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Echidna/Types/Solidity.hs
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,13 @@ data SolException
23
23
| SolcReadFailure
24
24
| NoContracts
25
25
| TestArgsFoundText
26
+
| PropertyWithoutReturnText
27
+
| OptimizationWithWrongReturnText
26
28
| ContractNotFoundText
27
29
| NoBytecodeText
28
30
| NoFuncs
29
31
| NoTests
30
-
| OnlyTests
32
+
31
33
| ConstructorArgsString
32
34
| DeploymentFailedAddrText
33
35
| SetUpCallFailedText
@@ -43,10 +45,12 @@ instance Show SolException where
43
45
NoContracts->"No contracts found in given file"
44
46
ContractNotFound c ->"Given contract "++show c ++" not found in given file"
45
47
TestArgsFound t ->"Test "++show t ++" has arguments, aborting"
48
+
PropertyWithoutReturn t ->"Property "++show t ++" does not return bool. Property functions must have signature: function "++ unpack t ++"() public returns (bool)"
49
+
OptimizationWithWrongReturn t ->"Optimization "++show t ++" does not return int256. Optimization functions must have signature: function "++ unpack t ++"() public returns (int256)"
46
50
NoBytecode t ->"No bytecode found for contract "++show t
47
51
NoFuncs->"ABI is empty, are you sure your constructor is right?"
48
52
NoTests->"No tests found in ABI. If you are using assert(), use --test-mode assertion"
49
-
OnlyTests->"Only tests and no public functions found in ABI"
53
+
50
54
ConstructorArgs s ->"Constructor arguments are required: "++ s
51
55
NoCryticCompile->"crytic-compile not installed or not found in PATH. To install it, run:\n pip install crytic-compile"
52
56
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?"
0 commit comments