Skip to content

Multihash -> string in Solidity #4

@decafboba

Description

@decafboba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions