-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Warning when rejecting an approval request with id XYZ not found #7077
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. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #7077 +/- ##
==========================================
- Coverage 33.15% 33.15% -0.01%
==========================================
Files 1005 1005
Lines 32655 32656 +1
Branches 8399 8398 -1
==========================================
Hits 10827 10827
- Misses 21828 21829 +1
☔ View full report in Codecov by Sentry. |
1ccd624
to
f0810ca
Compare
The 'Approve token' transaction is rejected after moving to background, no error/wa Screen.Recording.2023-09-12.at.10.18.47.AM.movAndroid build: Screen.Recording.2023-09-12.at.11.21.56.AM.mov |
Kudos, SonarCloud Quality Gate passed! |
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
: PR requires manual QA.No QA/E2E only
: PR does not require any manual QA effort. Prior to merging, ensure that you have successful end-to-end test runs in Bitrise.Spot check on release build
: PR does not require feature QA but needs non-automated verification. In the description section, provide test scenarios. Add screenshots, and or recordings of what was tested.QA Passed
label when QA has signed off (Only required if the PR was labeled withneeds-qa
)team-
(orexternal-contributor
label if your not a MetaMask employee)Description
Whenever you deploy an ERC 20, create an approval request, move the app to the background and get it back active again.
Basically, the issue is that
handleAppStateChange
andcomponentWillUnmount
are calling reject approval twice without checking if the approval exists.Changes:
Screenshots/Recordings
bug-warning-approval-id-not-found.webm
If applicable, add screenshots and/or recordings to visualize the before and after of your change
To Reproduce
Steps to reproduce the behaviour
The expected behaviour is the transaction being rejected but no warning or error is shown.
E2E
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8c4f9cff-ec1b-43ed-8c6f-776cfb46d06f
Issue
fixes #6860
Checklist