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

Use viem Hash and Address classes to validade strings #5

Open
alvarengathomas opened this issue Jan 2, 2025 · 0 comments
Open

Use viem Hash and Address classes to validade strings #5

alvarengathomas opened this issue Jan 2, 2025 · 0 comments

Comments

@alvarengathomas
Copy link
Contributor

Just a heads-up, viem already has support for Hash (it even has Typescript support) and some functions to work with. It also offers some functions to ensure strings are hashes. The same goes for addresses (And functions to check if a given string is an address). You may want to work with those instead of using custom implementations here (or, make a blend of both options if needed)

Originally posted by @gndelia in #3 (comment)

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

No branches or pull requests

1 participant