Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How get new hash trx after spead-up #1520

Closed
StKostyantin opened this issue Apr 27, 2021 · 2 comments
Closed

How get new hash trx after spead-up #1520

StKostyantin opened this issue Apr 27, 2021 · 2 comments
Labels
discussion Questions, feedback and general information.

Comments

@StKostyantin
Copy link

When I speed up a transaction, the transaction hash changes. and then I have an endless download because trx.wait () is going on according to the old hash.

@StKostyantin StKostyantin added the investigate Under investigation and may be a bug. label Apr 27, 2021
@ricmoo
Copy link
Member

ricmoo commented Apr 27, 2021

That is correct, historically there has not been much you can do about this, other than use the optional timeout parameter.

I am working on the next minor version will will introduce #1477, which will enable tracking these changes.

If you are in a hurry and cannot wait until v5.2, you can achieve this by listening the the block event, and if the transaction count for the from changes, find the matching transaction in that block and take the appropriate action. :)

@ricmoo ricmoo added discussion Questions, feedback and general information. and removed investigate Under investigation and may be a bug. labels Apr 27, 2021
@ricmoo
Copy link
Member

ricmoo commented Apr 27, 2021

(moving to discussions)

@ricmoo ricmoo closed this as completed Apr 27, 2021
@ethers-io ethers-io locked and limited conversation to collaborators Apr 27, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
discussion Questions, feedback and general information.
Projects
None yet
Development

No branches or pull requests

2 participants