-
Notifications
You must be signed in to change notification settings - Fork 9
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
Role assignation fail #839
Conversation
✅ Deploy Preview for dev-astral ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is protestware?This package is a joke, parody, or includes undocumented or hidden behavior unrelated to its primary function. Consider that consuming this package may come along with functionality unrelated to its primary purpose. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
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't confirm the fix on preview @marc-aurele-besner, but should be okay to test in prod.
Now it should work in the preview, but you will not be able to test the full flow in a preview since you will be redirected back to the production domain after connecting to Discord. |
Report too large to display inline |
User description
Role assignation fail
PR Type
Bug fix, Enhancement
Description
ChainProvider
by removing the cookie-based network setting and directly usingindexerSet.network
.queryGraphqlServer
to extract the network ID from the callback URL instead of relying on cookies, improving reliability and error handling.Changes walkthrough 📝
ChainProvider.tsx
Simplify network selection logic in ChainProvider
explorer/src/providers/ChainProvider.tsx
indexerSet.network
.network
state variable.queryGraphqlServer.ts
Use callback URL for network ID extraction in GraphQL queries
explorer/src/utils/queryGraphqlServer.ts