Skip to content
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

[rooch-portal] Fix client error: Add null checks and input validation #2591

Merged
merged 13 commits into from
Sep 17, 2024

Conversation

nlyrthiia
Copy link
Contributor

@nlyrthiia nlyrthiia commented Sep 7, 2024

Summary

With or without connect wallet, Nullish Checks and Input Validation are not handled for key values resulting in constant error messages from the client, and Handling Invalid Inputs is not handled when extractCoinInfoContent is retrieved resulting in incorrect requests and incorrect return values.

11831725672003_ pic
11841725680876_ pic
11851725680903_ pic
12191725727894_ pic
12211725728489_ pic

Fix:

Add Nullish Checks to all relevant values and Input Validation and Handling Invalid Inputs to methods to enhance code fault tolerance, reduce user-client anomalies, and reduce invalid requests sent.

12241725729991_ pic

Copy link

vercel bot commented Sep 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:21am
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:21am
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 1:21am

@jolestar
Copy link
Contributor

@wow-sven @jojoo-eth Please help review.

@jolestar jolestar merged commit 1defd75 into rooch-network:main Sep 17, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants