The network controller providerConfig property setter is used to initialize the provider. In practice we only ever call this once in mobile, immediately after constructing the controller. Rather than using a setter, we should migrate this to a method called initializeProvider to more closely match the extension.
This initializeProvider method should also be async, to make testing easier.
This is part of a larger effort to normalize the API of both network controllers, to make them easier to merge.
The network controller
providerConfigproperty setter is used to initialize the provider. In practice we only ever call this once in mobile, immediately after constructing the controller. Rather than using a setter, we should migrate this to a method calledinitializeProviderto more closely match the extension.This
initializeProvidermethod should also beasync, to make testing easier.This is part of a larger effort to normalize the API of both network controllers, to make them easier to merge.