[build] Allow model checking with solidity compiler

This commit is contained in:
Mark Spanbroek 2023-01-25 11:57:20 +01:00
parent cde5436262
commit 5f1da8c59a
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,11 @@
const config = require("./hardhat.config")
config.solidity.settings.modelChecker = {
engine: "chc",
showUnproved: true,
contracts: {
"contracts/TestCollateral.sol": ["TestCollateral"],
},
}
module.exports = config

View File

@ -5,7 +5,8 @@
"test": "npm run lint && hardhat test",
"start": "hardhat node --export deployment-localhost.json",
"format": "prettier --write contracts/**/*.sol test/**/*.js",
"lint": "solhint contracts/**.sol"
"lint": "solhint contracts/**.sol",
"modelcheck": "hardhat compile --config hardhat.modelcheck.config.js --force"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.2.1",