The fix to issue
https://github.com/ethers-io/ethers.js/issues/410 introduces a delay in waitForTransaction significantly impacting Blockchains with very short blocktimes (Ganache, G枚rli, PoA, etc).
This can be fixed by checking immediately for a receipt instead of waiting for the next block, which was introduced by moving waitForTransaction to use the event handler instead of manually polling, which was not cancellable.
@elenadimitrova - I've Added a fix for what I think is your problem to the GitHub repo (not published on NPM). Can you try out this version and see if it solves your slow-down issue?
Thanks! :)
@ricmoo Fix works for us, tests are even slightly faster 馃帀
Thanks for the fast response (again) 鉂わ笍
Awesome! I鈥檒l do some final testing this weekend and publish to NPM. :)
This is now published in 4.0.26. Let me know if there are any problems!
Thanks! :)
Most helpful comment
@ricmoo Fix works for us, tests are even slightly faster 馃帀
Thanks for the fast response (again) 鉂わ笍