@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.