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

Get nonce for showing retry button using ethQuery transaction count. #4995

Merged
merged 2 commits into from
Aug 8, 2018

Conversation

danjm
Copy link
Contributor

@danjm danjm commented Aug 8, 2018

fixes #4974

The earliest submitted transaction is now decided by comparing nonces to the selected addresses transaction count as returned by ethQuery.getTransactionCount. (See https://web3js.readthedocs.io/en/1.0/web3-eth.html#gettransactioncount)

This handles the case where a user might have an old transaction that was resubmitted by some means outside of Metamask (e.g. my ether wallet) and then confirmed. Metamask would still recognize the transaction as 'submitted', causing the retry button to appear on the wrong transaction history list item.

@danjm danjm requested a review from alextsg as a code owner August 8, 2018 18:39
@danjm danjm force-pushed the nonce-for-retry-from-ethquery branch from 6bbac40 to e98c3b4 Compare August 8, 2018 19:34
@whymarrh
Copy link
Contributor

whymarrh commented Aug 8, 2018

Refs #4926 and #4885

@danjm danjm merged commit 1ae668f into develop Aug 8, 2018
@whymarrh whymarrh deleted the nonce-for-retry-from-ethquery branch August 8, 2018 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to resend tx with higher gas in v4.9.0
2 participants