Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Expose purser-metamask account change hook method #207

Merged
merged 7 commits into from
Mar 4, 2019

Conversation

rdig
Copy link
Member

@rdig rdig commented Feb 27, 2019

This PR works on exposing the purser-metamask setStateEventObserver helper method from within the package to ease users to hook into Metamask's UI account changes.

This needs to be wrapped inside some safeguards in order to prevent crashing the Wallet Instance Object.

Added:

  • accountChangeHook method
  • accountChangeHook method unit tests
  • accountChangeHook method documentation

Resolves #191

@rdig rdig self-assigned this Feb 27, 2019
@rdig rdig changed the title Add: purser-metamask accountChangeHook index method Expose purser-metamask account change hook method Feb 27, 2019
@rdig rdig removed the in-progress label Mar 1, 2019
@rdig rdig marked this pull request as ready for review March 4, 2019 14:53
@rdig rdig merged commit 785f562 into master Mar 4, 2019
@rdig rdig deleted the feature/191-expose-purser-metamask-account-change-hook branch March 4, 2019 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant