-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: disconnect #84
feat: disconnect #84
Conversation
throw new UserNotConnectedError() | ||
} | ||
|
||
starknet.off('accountsChanged', () => {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janek26 is this the expected way to disconnect a connected Argent account?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is entirely up to the dapp. Connection status is not stored in Argent X, but just in the wallet.
In get-starknet
we handle it like this: https://github.com/starknet-community-libs/get-starknet/blob/master/src/index.ts#L92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing! I'll defer to maintainers then
Hmm the test failure appears not related to this PR
It looks like getting block is taking too long. I bumped the timeout to 15s locally and a handful of test runs are now succeeding. |
Looks good! Can you add a changeset with |
Fixes #79