Closed EdNoepel closed 6 months ago
Suspect it may be some incompatibility with @defi-wonderland/smock@2.4.0
, which purports to support EDR versions of hardhat.
Was able to reproduce a very similar crash in this example: https://github.com/EdNoepel/edr-crash-repro
Thank you @EdNoepel! We'll look into this.
Confirmed. Here's a slightly more minimal example: https://github.com/fvictorio/edr-smock-issue
We fixed the issue and will release a patch version of EDR soon.
We've released EDR v0.3.8 with a fix for this issue.
To upgrade to the latest EDR version immediately, you can remove your node_modules
directory and npm/yarn/pnpm lock file and reinstall your dependencies. Otherwise you can wait for the next Hardhat release which will automatically use the latest EDR version.
You can verify that you’re using the latest version of EDR by running the following command: npm ls @nomicfoundation/edr
.
I am updating from Hardhat 2.16.1 to 2.22.3 to gain Cancun support. My contracts compile and generate types, and I can run simple unit tests. However, when I try to run a test that deploys a complicated contract, the EDR (version 0.3.5) encounters a fatal error, ending the process.
Using node v18.13.0. Some package versions:
With backtrace enabled, here's what I get on linux:
Similar callstack run from a mac:
Any guidance would be appreciated. Unsure how to reproduce this with a simple example.