Skip to content

Commit f3f9d80

Browse files
committed
Upgrade hardhat to 2.2.1 (Berlin) / add test:fast yarn commands
1 parent 944c015 commit f3f9d80

File tree

4 files changed

+438
-45
lines changed

4 files changed

+438
-45
lines changed

hardhat.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const config: HardhatUserConfig = {
2121
},
2222
networks: {
2323
hardhat: {
24-
hardfork: "istanbul",
2524
accounts: getHardhatPrivateKeys(),
2625
},
2726
localhost: {

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
"rename-extensions": "for f in typechain/*.d.ts; do mv -- \"$f\" \"${f%.d.ts}.ts\"; done",
3535
"test": "npx hardhat test --network localhost",
3636
"test:clean": "yarn clean && yarn build && yarn test",
37+
"test:fast": "NO_COMPILE=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --network localhost --no-compile",
38+
"test:fast:compile": "TS_NODE_TRANSPILE_ONLY=1 npx hardhat test --network localhost",
3739
"transpile": "tsc",
3840
"transpile-dist": "tsc -p tsconfig.dist.json",
3941
"typechain": "npx hardhat typechain"
@@ -65,7 +67,7 @@
6567
"dotenv": "^8.2.0",
6668
"ethereum-waffle": "^3.2.1",
6769
"ethers": "^5.0.24",
68-
"hardhat": "^2.0.6",
70+
"hardhat": "2.2.1",
6971
"hardhat-deploy": "^0.7.0-beta.39",
7072
"hardhat-typechain": "^0.3.4",
7173
"husky": "^4.2.5",

tasks/subtasks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ internalTask(TASK_COMPILE_SOLIDITY_COMPILE).setAction(setupNativeSolc);
2323
// Fix gas to be string instead of number in typechain files
2424
internalTask(TASK_TEST_SETUP_TEST_ENVIRONMENT)
2525
.setAction(async function setupNativeSolc({ input }, { config }, runSuper) {
26+
if (process.env.NO_COMPILE === "true") return;
27+
2628
const replace = require("replace-in-file");
2729

2830
const options = {

0 commit comments

Comments
 (0)