Closed hubert-de-lalye closed 1 day ago
Just looked at package.json, and see ethers^5, does this library compatible with ethers >= 6?
Hi,
This library is designed to mock wallets, not providers, making it ideal for testing dApps. However, note that it won't mock anything that doesn't interact with window.ethereum or a wallet extension.
Currently, Ethers v6 and above is not supported. But since npm allows for multiple versions of dependencies to coexist, and this library includes a bundled version of Ethers, it shouldn't pose an issue for most use cases.
Trying this as instruction: https://github.com/DePayFi/web3-mock?tab=readme-ov-file#providers-1
Receiving:
When I'm removing
mock(...)
- everything is fine, ethers make correct call and get correct response.What am I doing wrong?