[build] Allow model checking with solidity compiler
This commit is contained in:
parent
cde5436262
commit
5f1da8c59a
|
@ -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
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue