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

refact: Removed the Hash struct to_plain_str function. #723

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Ivanbeethoven
Copy link
Contributor

Refactoring: Removed the Hash struct :: to_plain_str function and replaced it with a standard to_string.
Now if you want to convert a hash to a string, you can call to_string instead of the previous to_plain_str. As an alternative, I've added to_color_str functions that can simply beautify the output of the hash value. This PR solves the previous API design flaw, which may bring the risk of error in string conversion.

Copy link

vercel bot commented Dec 8, 2024

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

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 1:44am

…d it with a standard `to_string` func.

Signed-off-by: Han Xiaoyang <[email protected]>
@genedna genedna added this pull request to the merge queue Dec 9, 2024
Merged via the queue into web3infra-foundation:main with commit 21c42b3 Dec 9, 2024
10 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.

2 participants