Skip to content

Make initializeProvider async - #1180

Merged
Gudahtt merged 2 commits into
mainfrom
make-initialize-provider-async
Apr 14, 2023
Merged

Make initializeProvider async#1180
Gudahtt merged 2 commits into
mainfrom
make-initialize-provider-async

Conversation

@Gudahtt

Copy link
Copy Markdown
Member

Description

The initializeProvider method has been made async. This method already triggered various async operations, but they were not being await-ed. Now they are, making this method easier to use and easier to test.

Changes

  • BREAKING: The initializeProvider method is now async

References

This relates to MetaMask/metamask-extension#18587

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation for new or updated code as appropriate (note: this will usually be JSDoc)
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

Comment threadpackages/network-controller/tests/NetworkController.test.ts Outdated
@Gudahtt
Gudahtt marked this pull request as ready for review April 13, 2023 22:54
@Gudahtt
Gudahtt requested a review from a team as a code ownerApril 13, 2023 22:54
The `initializeProvider` method has been made async. This method
already triggered various async operations, but they were not being
`await`-ed. Now they are, making this method easier to use and easier
to test.
This relates to MetaMask/metamask-extension#18587
@Gudahtt
Gudahttforce-pushed the make-initialize-provider-async branch from 4e54636 to c8006efCompareApril 14, 2023 16:54
@Gudahtt
Gudahtt requested a review from mcmireApril 14, 2023 17:47
@Gudahtt
Gudahtt merged commit 364e229 into mainApr 14, 2023
@Gudahtt
Gudahtt deleted the make-initialize-provider-async branch April 14, 2023 18:35
@legobeatlegobeat mentioned this pull request Apr 25, 2023
Sign up for freeto 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

@Gudahtt@mcmire