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.
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!
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.