Why it doesn't work when I use...
$ yarn hardhat --verison 2.10.2
await expect(fundMeConnectedContract.withdraw()
).to.be.revertedWith(
"FundMe__NotOwner"
)
but this worked
await expect(fundMeConnectedContract.withdraw()
).to.be.revertedWithCustomError(
fundMeConnectedContract,
"FundMe__NotOwner"
)
Has the hardhat custom error handling changed since May this year..??