You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
While the Metamask account change hook exists and it's used inside purser-metamask(to always keep the wallet instance in sync with the UI), it's not exposed outside of the package.
This could be useful for dApps who want to act on the account being changed (Eg: log out the user, update the interface with the new instance, etc)
For this, a safer (eg: properly validated) version of the setStateEventObserver should be exposed:
While the Metamask account change hook exists and it's used inside
purser-metamask
(to always keep the wallet instance in sync with the UI), it's not exposed outside of the package.This could be useful for dApps who want to act on the account being changed (Eg: log out the user, update the interface with the new instance, etc)
For this, a safer (eg: properly validated) version of the
setStateEventObserver
should be exposed:purser/modules/node_modules/@colony/purser-metamask/helpers.js
Lines 133 to 157 in c4f7ca9
This issue is here to track implementation of the above.
The text was updated successfully, but these errors were encountered: