-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix encypt/decrypt tx queueing #10350
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [d0898b9]
Page Load Metrics (678 ± 59 ms)
|
Fixes #10231 Use unconfirmedTransactionsListSelector in the encypt/decrypt components to render the appropriate data to the component at the appropriate time(?). I am still unsure how sometimes the state.confirmTransaction can we left empty sometimes on rendering the component, possibly the issue with the ConfirmTransaction componentDidUpdate constantly hitting this section. https://github.com/MetaMask/metamask-extension/blob/develop/ui/app/pages/confirm-transaction/confirm-transaction.component.js#L94-L101 For now this seems to be an intermediate fix.
d0898b9
to
6772703
Compare
Builds ready [6772703]
Page Load Metrics (656 ± 60 ms)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that this works as described! Nice @tmashuang !
This is a weird one. I do think there is a problem in the base transaction component in the function you highlighted, but even still it looks like I'm unsure what the consequences are of not using |
The base confirmation component seems to assume that each confirmation page is tolerant of That style approach would be more in-line with how our other confirmations work. That might be better than the approach taken in this PR, which leaves a vestigial That said, the whole |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge this now and create an issue to clean it up further later, since it does seem to fix the immediate problem.
Edit: I've created a ticket to track this: #10470
Fixes #10231
Use unconfirmedTransactionsListSelector in the encypt/decrypt components to render the appropriate data to the component at the appropriate time(?).
I am still unsure how sometimes the state.confirmTransaction can we left empty sometimes on rendering the component, possibly the issue with the ConfirmTransaction componentDidUpdate constantly hitting this section.
metamask-extension/ui/app/pages/confirm-transaction/confirm-transaction.component.js
Lines 94 to 101 in 97d268c
For now this seems to be an intermediate fix.
Manual testing steps:
I've tried queueing other types of transactions in the middle and around these requests and there doesn't seem to be an issue with the order, but if anyone else can confirm much appreciated.
The requests can be from two different origins (edge-case check).