use-ink/useink

Handle Connection of an Additional Account

Closed this issue · 2 comments

Scenario:

  1. You are connected to a dapp with 2 accounts of your wallet of choice
  2. You enable inside the wallet to allow a third account to interact with the dapp.

=> As of now nothing happens for the "useWallet" hook. Is there a way to observe new accounts getting enabled in the users wallet and refresh the useWallet hook?

talisman-connect has a wallet subscription function. It looks like we could use that.

This was solved here #56 via subscriptions