v3.0.0
What's Changed
- Make package usable in browser env by @jfschwarz in #106
Breaking Changes
- The factory functions now take an
ethers.providers.JsonRpcSigner
instead of aHardhatRuntimeEnvironment
as parameter so they no longer depend on hardhat
Migration from v2
Create a signer from your hardhat environment:
const [signerWithAddress] = await hre.ethers.getSigners();
const signer = hre.ethers.provider.getSigner(signerWithAddress.address)
Pass that signer
instance where previously the HardhatRuntimeEnvironment
was expected.
Full Changelog: v2.1.2...v3.0.0-fix