Skip to content

Commit

Permalink
fix solidity-coverage, slither
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabasco committed Apr 12, 2024
1 parent 5109ca2 commit f17d5dc
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
- run: NO_GAS_ENFORCE=1 npx hardhat coverage
- run: SOLIDITY_COVERAGE=true NO_GAS_ENFORCE=1 npx hardhat coverage
2 changes: 1 addition & 1 deletion .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
with:
node-version: 20
fail-on: high
slither-args: --exclude controlled-delegatecall
slither-args: --exclude controlled-delegatecall,incorrect-return
3 changes: 3 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
skipFiles: ['test','deprecated','token','upgrades']
};
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import '@openzeppelin/hardhat-upgrades';

import 'hardhat-abi-exporter';
import 'hardhat-contract-sizer';
import 'solidity-coverage'

import './tasks/deploy';
import './tasks/update-module';
Expand Down Expand Up @@ -46,7 +47,6 @@ const config: HardhatUserConfig = {
} as SSVNetworkConfig,
hardhat: {
allowUnlimitedContractSize: true,
gas: 5000000,
},
},
etherscan: {
Expand Down
Loading

0 comments on commit f17d5dc

Please sign in to comment.