Skip to content

Commit f54d0e6

Browse files
fixes
1 parent e64c03e commit f54d0e6

File tree

3 files changed

+65
-5
lines changed

3 files changed

+65
-5
lines changed

.github/workflows/medusa.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
- name: Exercise 4
4848
workdir: program-analysis/echidna/exercises/exercise4/
4949
files: solution.sol
50-
config: config.yaml
5150
contract: TestToken
5251
outcome: failure
5352
expected: 'transfer(address,uint256)\" failed after the following call sequence'
@@ -87,7 +86,7 @@ jobs:
8786
contract: C
8887
config: filter.yaml
8988
outcome: failure
90-
expected: 'echidna_state4()\" resulted in an assertion failure after the following call sequence'
89+
expected: 'echidna_state4()\" failed after the following call sequence'
9190
- name: Assert
9291
workdir: program-analysis/echidna/example/
9392
files: assert.sol

program-analysis/echidna/example/medusa.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"fuzzing": {
33
"testing": {
4+
"assertionTesting": {
5+
"enabled": true
6+
},
47
"propertyTesting": {
5-
"enabled": true,
68
"testPrefixes": [
79
"echidna_"
810
]

program-analysis/echidna/exercises/exercise4/medusa.json

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,66 @@
11
{
22
"fuzzing": {
3+
"workers": 10,
4+
"workerResetLimit": 50,
5+
"timeout": 0,
6+
"testLimit": 0,
7+
"callSequenceLength": 100,
8+
"corpusDirectory": "",
9+
"coverageEnabled": true,
10+
"targetContracts": [],
11+
"targetContractsBalances": [],
12+
"constructorArgs": {},
13+
"deployerAddress": "0x30000",
14+
"senderAddresses": [
15+
"0x10000",
16+
"0x20000",
17+
"0x30000"
18+
],
19+
"blockNumberDelayMax": 60480,
20+
"blockTimestampDelayMax": 604800,
21+
"blockGasLimit": 125000000,
22+
"transactionGasLimit": 12500000,
323
"testing": {
24+
"stopOnFailedTest": true,
25+
"stopOnFailedContractMatching": false,
26+
"stopOnNoTests": true,
27+
"testAllContracts": false,
28+
"traceAll": false,
29+
"assertionTesting": {
30+
"enabled": true,
31+
"testViewMethods": false,
32+
"panicCodeConfig": {
33+
"failOnCompilerInsertedPanic": false,
34+
"failOnAssertion": true,
35+
"failOnArithmeticUnderflow": false,
36+
"failOnDivideByZero": false,
37+
"failOnEnumTypeConversionOutOfBounds": false,
38+
"failOnIncorrectStorageAccess": false,
39+
"failOnPopEmptyArray": false,
40+
"failOnOutOfBoundsArrayAccess": false,
41+
"failOnAllocateTooMuchMemory": false,
42+
"failOnCallUninitializedVariable": false
43+
}
44+
},
445
"propertyTesting": {
546
"enabled": true,
647
"testPrefixes": [
7-
"echidna_"
48+
"property_"
49+
]
50+
},
51+
"optimizationTesting": {
52+
"enabled": true,
53+
"testPrefixes": [
54+
"optimize_"
855
]
956
}
57+
},
58+
"chainConfig": {
59+
"codeSizeCheckDisabled": true,
60+
"cheatCodes": {
61+
"cheatCodesEnabled": true,
62+
"enableFFI": false
63+
}
1064
}
1165
},
1266
"compilation": {
@@ -17,5 +71,10 @@
1771
"exportDirectory": "",
1872
"args": []
1973
}
74+
},
75+
"logging": {
76+
"level": "info",
77+
"logDirectory": "",
78+
"noColor": false
2079
}
21-
}
80+
}

0 commit comments

Comments
 (0)