My positions doesn't work if not connected
Closed this issue · 4 comments
bingen commented
ewilz commented
we were hoping to take this a step further and notify the user whenever they're logged into a separate network than the Dapp. Is this possible within an aragon app to check the network of metamask?
sohkai commented
Seeing as you're on using @aragon/api@1.1.0
, yes, this is available.
- Get the network: app.network()
- This is an observable but really will only ever emit one value for now
- Get the connected accounts:
app.accounts()
- This will emit every time the user changes their account
Ahh, actually there is no way to get the user's connected network, only the network the client is connected to (aragon/aragon.js#300)