Closed nmclrn closed 3 years ago
Hi @nmclrn
To double-check, are you using the latest version (1.0.4
)? (It was published last week).
A similar issue was fixed in that release via hardhat-gas-reporter 54.
Upgrading to 1.0.4 fixes this - thank you so much for the super-quick reply!
I am using hardhat with ethers and waffle and hardhat-gas-reporter. It's generally awesome! 👏 👏
If I have a test that calls:
await myContract.connect(someNonDefaultSigningAccount).myFunction(someParams)
I see no gas usage reported for this function call.The problem here seems to be related to calling connect to use a different Signer, because calling
await myContract.myFunction(someParams)
(without the.connect()
) reports gas just fine.