Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionResponse.wait() hangs when transaction has been sped up/resubmitted #3385

Open
fmoyaj opened this issue Sep 28, 2022 · 0 comments
Assignees
Labels
investigate Under investigation and may be a bug.

Comments

@fmoyaj
Copy link

fmoyaj commented Sep 28, 2022

Ethers Version

5.6.3

Search Terms

wait, getTransaction, provider, transaction.wait

Describe the Problem

After a transaction is sped up in the wallet/ resubmitted with higher gas and provider.getTransaction is called with the original transaction hash, the wait call on the generated transaction response hangs for an indefinite amount of time and doesn't throw an error "TRANSACTION_REPLACED" indicating that the transaction has been replaced by a new transaction.

Code Snippet

const txResponse = await provider.getTransaction(tx.hash);

const receipt = await txResponse.wait();

return receipt;

Contract ABI

No response

Errors

No response

Environment

node.js (v12 or newer)

Environment (Other)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug.
Projects
None yet
Development

No branches or pull requests

2 participants