Skip to content

mock doesnt seem to work on hardhat with v4 #833

Description

@sirpy

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions