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
Is your feature request related to a problem? Please describe.
Now when requestSignIn by one account, one local private function call key for one contract X will be saved in the local storage. If signIn again with another contract Y, the saved local private function call key for contract X will be overwritten.
This works for 95% of the scenarios, but it's not convenient when the DApp needs to interact with more than 2 or 3 contracts.
Describe the solution you'd like
Make it possible to requestSignIn for multiple contracts, and save the local private function call keys for multiple contracts in the local storage. When signAndSendTransaction, search all the local keys to find the appropriate local private key to use.
Describe alternatives you've considered
This pattern actually is related to NEAR web wallet which requires the DApp to save private function call key to local storage to reduce unnecessary redirect.
In the case of browser extension (injected) wallet, we may just requestSignIn multiple times, and would let the extension to decide which keys to use. So maybe we can move the logic out of the core package, but make an optional feature for web wallet.
Additional context
This is met by some developers who're building their DApps which need to interact with 3 contracts.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Now when
requestSignIn
by one account, one local private function call key for one contract X will be saved in the local storage. If signIn again with another contract Y, the saved local private function call key for contract X will be overwritten.This works for 95% of the scenarios, but it's not convenient when the DApp needs to interact with more than 2 or 3 contracts.
Describe the solution you'd like
Make it possible to
requestSignIn
for multiple contracts, and save the local private function call keys for multiple contracts in the local storage. WhensignAndSendTransaction
, search all the local keys to find the appropriate local private key to use.Describe alternatives you've considered
This pattern actually is related to NEAR web wallet which requires the DApp to save private function call key to local storage to reduce unnecessary redirect.
In the case of browser extension (injected) wallet, we may just
requestSignIn
multiple times, and would let the extension to decide which keys to use. So maybe we can move the logic out of the core package, but make an optional feature for web wallet.Additional context
This is met by some developers who're building their DApps which need to interact with 3 contracts.
The text was updated successfully, but these errors were encountered: