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

fix: use try/catch with potential unknown address #962

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mchappell
Copy link
Contributor

@mchappell mchappell commented Oct 25, 2024

implement try/catch with null fallback to prevent nami crashing if Loader.Cardano.Address.from_bech32(address); throws due to invalid string length, mixed formatting, or any other issue

LW-11769

@rhyslbw rhyslbw self-requested a review October 25, 2024 10:02
src/ui/app/components/transaction.jsx Outdated Show resolved Hide resolved
src/ui/app/components/transaction.jsx Show resolved Hide resolved
src/ui/app/components/transaction.jsx Outdated Show resolved Hide resolved
src/ui/app/components/transaction.jsx Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Oct 25, 2024

Copy link
Member

@mkazlauskas mkazlauskas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mchappell mchappell merged commit 04888f3 into main Oct 25, 2024
2 checks passed
@mchappell mchappell deleted the fix/try-catch-bech32-casting branch October 25, 2024 12:31
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.

4 participants