diff --git a/hardhat.config.ts b/hardhat.config.ts index bbf4aef7..94b4a156 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -3,6 +3,7 @@ import "@nomicfoundation/hardhat-verify"; import "@typechain/hardhat"; import "tsconfig-paths/register"; import "hardhat-abi-exporter"; +import "solidity-coverage"; import "./tasks/addresses"; import { getHardhatConfigNetworks } from "@zetachain/networks"; diff --git a/package.json b/package.json index cc0337c7..177b0d1b 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "scripts": { "build": "yarn compile && npx del-cli dist abi && npx tsc || true && npx del-cli './dist/typechain-types/**/*.js' && npx cpx './data/**/*' dist/data && npx cpx './artifacts/contracts/**/*' ./abi && npx del-cli './abi/**/*.dbg.json'", "compile": "npx hardhat compile --force", + "coverage": "npx hardhat coverage", "docs": "forge doc", "generate": "yarn compile && ./scripts/generate_go.sh || true && ./scripts/generate_addresses.sh && yarn lint:fix", "lint": "npx eslint . --ext .js,.ts",