Skip to content

Use async/await for seedPhraseVerifier.verifyAccounts#9100

Merged
whymarrh merged 1 commit intoMetaMask:developfrom
whymarrh:aa-seed-phrase-verifier
Jul 29, 2020
Merged

Use async/await for seedPhraseVerifier.verifyAccounts#9100
whymarrh merged 1 commit intoMetaMask:developfrom
whymarrh:aa-seed-phrase-verifier

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

This PR updates seedPhraseVerifier.verifyAccounts to use async/await in line with most of the background scripts.

The result of the method call (which is now Promise<undefined> instead of undefined) is not used by its call site.[1]

(Hide whitespace changes might be useful for this diff.)

@whymarrh whymarrh force-pushed the aa-seed-phrase-verifier branch from b001da2 to 383b764 Compare July 29, 2020 15:34
@whymarrh whymarrh marked this pull request as ready for review July 29, 2020 16:01
@whymarrh whymarrh requested a review from a team as a code owner July 29, 2020 16:01
Copy link
Copy Markdown
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All code remains the same except for the promise+resolve+reject -> async/await switch. So LGTM

@whymarrh whymarrh merged commit 002f021 into MetaMask:develop Jul 29, 2020
@whymarrh whymarrh deleted the aa-seed-phrase-verifier branch July 29, 2020 22:20
Gudahtt added a commit that referenced this pull request Jul 30, 2020
* origin/develop: (582 commits)
  Use async/await for seedPhraseVerifier.verifyAccounts (#9100)
  Use async/await for getRestrictedMethods (#9099)
  Update dependencies (#9105)
  update email us to contact us (#9104)
  Improve source maps (#9101)
  Update font family globally (#9073)
  rpc-cap@3.1.0 (#9103)
  Use environment variable for production Sentry DSN (#9097)
  Only log error on first occurrence of missing substitution (#9096)
  Use mixins for typography instead of placeholder selectors (#9072)
  Update css folder structure (#9071)
  Disable Sentry in development (#9095)
  Use environment variable for MetaMetrics project ID (#9094)
  Use development metametrics project during tests (#9093)
  json-rpc-engine@5.2.0 (#9091)
  fixup! call initializeProvider where necessary
  call initializeProvider where necessary
  Add euclid fontface (#9018)
  fix timing-reliant network controller test
  Robustify permissions controller requestUserApproval tests (#9064)
  ...
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.

3 participants