wharfkit / session

Create account-based sessions, perform transactions, and allow users to login using Antelope-based blockchains.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Track last used account per chain, and allow `restore(chainId)` to use it.

aaroncox opened this issue · comments

Ran into this unique situation with OBE:

telosnetwork/open-block-explorer@c9667b5#diff-1bbd25192804d60f357caadc07dc68a883ad0e6ad7a17cea15f2a920155b49c1L21-R33

It would be helpful here if we could just pass in the chainId to restore, and the SessionKit would know which account was last used and restore it.

Completed in ef7a000