[SOLVED] Transaction.wait() not triggering sometimes

Hello,

I need to confirm the result of the transaction and I use transaction.wait() for this. Generally it works fine but around 1 out of 5, It goes on forever although transaction is confirmed. What may be the problem ?

I don’t know what could be the problem. You use latest version of the sdk? Maybe it could also depend on what RPC is used in MetaMask.

I found the problem. I was waiting for 2 confirmations although I was asking for 1. Problem solved.!

2 Likes