Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock doesnt seem to work on hardhat with v4 #833

Open
sirpy opened this issue Aug 7, 2023 · 0 comments
Open

mock doesnt seem to work on hardhat with v4 #833

sirpy opened this issue Aug 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sirpy
Copy link

sirpy commented Aug 7, 2023

Describe the bug
Upgrading to waffle v4 seems not to work.
same setup that works in v3 returns an error "Mock on the method is not initialized" with v4

To Reproduce
use hardhat
mock contract + function
try to call to call contract.mockedFunction()

Software versions

  • ethereum-waffle 4.04
  • @nomiclabs/hardhat-ethers 2.2.1
  • hardhat 2.6.1
  • Package manager yarn
  • Node version 18
@sirpy sirpy added the bug Something isn't working label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant