ethers.js: getTransactionReceipt error

await provider.waitForTransaction(transaction.hash);
const receipt = await provider.getTransactionReceipt(transaction.hash);

When I log receipt from getTransactionReceipt, I get this error:

Error: invalid transaction receipt - exactly one of status and root should be present

What am I doing wrong?

My provider is a parity node running on Kovan (I used providers.JsonRpcProvider)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

If you use v4, interface.parseLog will figure out which event it is and parse it for you, including the name, function signature, topic and parsed values.

There is also an interface.parseTransaction that will look up what function and what values the transaction represents.

So, you can directly access contract.interface.parseLog if you have a contract, or you can just instantiate an Interface if you are processing the blockchain in general.