-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Udapp disconnect fix #5639
Udapp disconnect fix #5639
Conversation
✅ Deploy Preview for remixproject ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
554e3f3
to
89971a1
Compare
@@ -235,6 +235,16 @@ export function RunTabUI(props: RunTabProps) { | |||
} | |||
}, [runTab.popup]) | |||
|
|||
useEffect(() => { | |||
if (runTab.selectExEnv.includes('injected') && |
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.
what about wallets?
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.
I am not sure I understand what you mean by wallets.
Object.entries(runTab.accounts.loadedAccounts).length === 0 && | ||
runTab.accounts.selectedAccount.length > 0) { | ||
// switch to vm-cancum because no account is loaded from injected provider | ||
const context = plugin.blockchain.defaultPinnedProviders[0] // vm-cancun |
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.
can we load load the previously selected or it will be difficult to do?
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.
It would just require some more code to track any account that is selected and persist it outside the reach of a useEffect.
7c0359b
to
1170da2
Compare
fixes #5483