TrueFiEng / Waffle

Library for writing and testing smart contracts.
https://getwaffle.io
MIT License
960 stars 161 forks source link

mock doesnt seem to work on hardhat with v4 #833

Open sirpy opened 1 year ago

sirpy commented 1 year ago

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