Minimal example to reproduce Hardhat bug report
Initial setup:
- Install dependencies:
yarn
- Create a
.env
file with content:RPC=https://<URL_TO_YOUR_RPC
Run
yarn hardhat test
yarn
.env
file with content: RPC=https://<URL_TO_YOUR_RPC
yarn hardhat test