@metamask/providers
Advanced tools
Changelog
[11.0.0]
webextension-polyfill-ts
(#249)accountsChanged
+ eth_accounts
callback loop (#248)
accountsChanged
event, modify the returned accounts, then call eth_accounts
, it was possible to enter an infinite loop. This was caused by the provider mistakenly thinking the accounts had changed because of the mutation performed in the event listener, triggering redundant accountsChanged
events. This was fixed; there should be no more redundant accountsChanged
events and no infinite loop.Changelog
[9.0.0]
BaseProvider
to new StreamProvider
(#209)
BaseProvider
is now a transport-agnostic abstract class. StreamProvider
accepts a stream and relies on MetaMask's internal JSON-RPC API for its behavior. See the StreamProvider
class for more details.MetaMaskInpageProvider
should be completely unaffected except that its prototype chain now includes a class named AbstractStreamProvider
.