defi-wonderland / smock

The Solidity mocking library
MIT License
319 stars 40 forks source link

fix: initialize hardhat provider #182

Closed fvictorio closed 1 year ago

fvictorio commented 1 year ago

The next version of Hardhat is going to change how hre.network.provider works. The provider will now be lazily initialized, as part of a new feature that lets plugin authors extend the provider behavior.

That change will break smock, but this PR fixes that. I tested it both with the new (unrealesed) changes and with the current version, and in both cases it works fine.

fvictorio commented 1 year ago

Hey folks, I think we are going to release a new version of Hardhat with this change soon, any chance you can merge and release this so that smock is ready for that change? Thanks!