@metamask/providers
Advanced tools
Changelog
[13.1.0]
initializeProvider()
params object now accepts an optional providerInfo
property with a value of EIP6963ProviderInfo objecteip6963AnnounceProvider()
which supports a wallet by announcing a provider through the eip6963:announceProvider
event and re-announcing the provider whenever an eip6963:requestProvider
event is receivedeip6963RequestProvider()
which supports a dapp by dispatching an eip6963:requestProvider
event and invoking a callback for each eip6963:announceProvider
event receivedEIP6963AnnounceProviderEvent
typeEIP6963ProviderDetail
typeEIP6963ProviderInfo
typeEIP6963RequestProviderEvent
typeChangelog
[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.