Skip to content

Use async/await for getRestrictedMethods#9099

Merged
whymarrh merged 1 commit intoMetaMask:developfrom
whymarrh:aa-grm
Jul 29, 2020
Merged

Use async/await for getRestrictedMethods#9099
whymarrh merged 1 commit intoMetaMask:developfrom
whymarrh:aa-grm

Conversation

@whymarrh
Copy link
Copy Markdown
Contributor

@whymarrh whymarrh commented Jul 29, 2020

This PR updates getRestrictedMethods 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 rpc-cap.[1]

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

@whymarrh whymarrh marked this pull request as ready for review July 29, 2020 15:32
@whymarrh whymarrh requested a review from a team as a code owner July 29, 2020 15:32
Copy link
Copy Markdown
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

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

Why the hell not?!

@whymarrh whymarrh merged commit e0cc84b into MetaMask:develop Jul 29, 2020
@whymarrh whymarrh deleted the aa-grm 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.

2 participants