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 validation for invalid Base58 addresses #10

Conversation

tarceri
Copy link
Contributor

@tarceri tarceri commented Feb 19, 2021

If the address is invalid we can't derive the network from it so
we must return an empty string to avoid hitting an exception
later on.

e.g. TypeError: ("'network' must be <class 'str'> (got None that is a <class 'NoneType'>).",
To return an empty network string for when the address is invalid. Seems almost all bug reports are about this same issue.

If the address is invalid we can't derive the network from it so
we must return an empty string to avoid hitting an exception
later on.

e.g. TypeError: ("'network' must be <class 'str'> (got None that is a <class 'NoneType'>).",
To return an empty network string for when the address is invalid. Seems almost all bug reports are about this same issue.
Copy link
Owner

@joeblackwaslike joeblackwaslike left a comment

Choose a reason for hiding this comment

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

lgtm

@joeblackwaslike joeblackwaslike self-assigned this Oct 17, 2022
@joeblackwaslike joeblackwaslike added the bug Something isn't working label Oct 17, 2022
@joeblackwaslike
Copy link
Owner

@tarceri thx for the submission. This PR should fix #1 and #9 .

@joeblackwaslike joeblackwaslike merged commit 8bfd284 into joeblackwaslike:master Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants