TypeError: Cannot read properties of undefined (reading “waitForTransaction”)

Nazreen Mohamad
2 min readMay 12, 2024

This post exists to help Solidity developers debug a very specific error for a project that uses hardhat.

My context: I was trying to run my test scripts.

The error “TypeError: Cannot read properties of undefined (reading “waitForTransaction”)” comes from mismatched versions of ethers.

ethers v6 introduced a new method called “waitForTransaction” on the transaction object

--

--