-
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
Use async/await
for "message manager" action creators
#8434
Use async/await
for "message manager" action creators
#8434
Conversation
3b3a505
to
2f995de
Compare
Builds ready [2f995de]
|
I had done this originally in preparation for allowing |
These action creators for the "message manager" controller interactions have been updated to use `async/await`. There should be almost no changes in behavior. The only things removed were a few debug log statements, and a single `console.log`.
2f995de
to
12a4c3d
Compare
async/await
for action creators that call updateMetamaskState
async/await
for "message manager" action creators
Builds ready [12a4c3d]
|
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.
LGTM! Good use of the finally
-block to tidy up the logic.
The loading indication had remained after successfully signing with `personal_sign`. This mistake was introduced accidentally in #8434. This is noticeable if you confirm the signature in the popup UI or fullscreen UI, as they remain open after signing. The notification UI closes after signing without waiting for this loading indicator to be removed.
The loading indication had remained after successfully signing with `personal_sign`. This mistake was introduced accidentally in #8434. This is noticeable if you confirm the signature in the popup UI or fullscreen UI, as they remain open after signing. The notification UI closes after signing without waiting for this loading indicator to be removed.
These action creators for the "message manager" controller interactions have been updated to use
async/await
. There should be almost no changes in behavior. The only things removed were a few debug log statements, and a singleconsole.log
.