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
Was playing around with the recently added events (version: ^3.4.0). Ran into some troubles trying to do the following (the user has previously accepted to share both address and pubkey with the app):
import*asGemfrom"@gemwallet/api";Gem.on("walletChanged",async(event)=>{awaitGem.isInstalled();awaitGem.getAddress();awaitGem.getNetwork();awaitGem.getPublicKey();// <- fails with { "type": "reject", result: undefined }});
Seems to work when doing the same series of calls outside of an event handler. Not sure whether this is related to the async callback or the getPublicKey function. Feels like something is racing somewhere.
Are async callback functions even supported currently? (If not, they probably should be)
In case you need more details, let me know.
The text was updated successfully, but these errors were encountered:
Was playing around with the recently added events (version:
^3.4.0
). Ran into some troubles trying to do the following (the user has previously accepted to share both address and pubkey with the app):Seems to work when doing the same series of calls outside of an event handler. Not sure whether this is related to the async callback or the getPublicKey function. Feels like something is racing somewhere.
Are async callback functions even supported currently? (If not, they probably should be)
In case you need more details, let me know.
The text was updated successfully, but these errors were encountered: