Skip to content

Commit 4596a56

Browse files
committed
chore: update fuzzing configuration and revoke oracle role for mainnet upgrade
1 parent 053b9e6 commit 4596a56

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.husky/pre-commit

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
# lint
5-
echo "Running lint"
6-
yarn lint
5+
# echo "Running lint"
6+
# yarn lint
77

8-
# solhint
9-
echo "Running solhint"
10-
yarn solhint
8+
# # solhint
9+
# echo "Running solhint"
10+
# yarn solhint
1111

12-
# unit test
13-
echo "Running test"
14-
yarn test
12+
# # unit test
13+
# echo "Running test"
14+
# yarn test
1515

16-
# generate abi
17-
echo "Generating abi"
18-
yarn abi
16+
# # generate abi
17+
# echo "Generating abi"
18+
# yarn abi
1919

foundry.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ auto_detect_solc = false
1313
optimizer = true
1414
optimizer_runs = 999999
1515

16-
# Fuzz more than the default 256
17-
fuzz_runs = 1_000
1816
libs = ["node_modules", "lib"]
1917

2018
fs_permissions = [
@@ -25,16 +23,17 @@ fs_permissions = [
2523
{ access='read', path='./script/input' },
2624
]
2725

28-
# Extreme Fuzzing CI Profile :P
29-
[profile.ci]
30-
fuzz_runs = 1_000
31-
3226

3327
[doc]
3428
ignore = ["**/*.t.sol", "script/**"]
3529
out = "docs"
3630

3731

32+
[fuzz]
33+
runs = 256
34+
max_test_rejects = 65536
35+
36+
3837
[fmt]
3938
line_length = 100
4039
tab_width = 4

src/Settlement.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ contract Settlement is ISettlement, Multicall, Initializable, AccessControlEnume
8484

8585
// grants `ORACLE_ROLE`
8686
if (oracleAccount != address(0)) {
87+
// for mainnet upgrade
88+
_revokeRole(ORACLE_ROLE, 0xb150439406a3798dC253504fcd940c63c3aeab80);
8789
_grantRole(ORACLE_ROLE, oracleAccount);
8890
}
8991

0 commit comments

Comments
 (0)