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

Multihash -> string in Solidity #4

Open
0xTenzo opened this issue Apr 27, 2022 · 0 comments
Open

Multihash -> string in Solidity #4

0xTenzo opened this issue Apr 27, 2022 · 0 comments

Comments

@0xTenzo
Copy link

0xTenzo commented Apr 27, 2022

Hello @saurfang! Thanks for this contribution, it has been super useful!

One thing I have been wanting to try is to take in a Multihash as an input parameter and convert it into a string.

My main reasoning for doing this is, so it can be set to the value in ERC721's tokenURI(), which is of type string. Although there is examples of going to and from Multihash <-> string in the JavaScript, I think quite a few folks would love to know how to do this in Solidity.

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