Skip to content

[Compilers] bytecodehash property in metadata settings doesn't have ipfs option #194

Discussion options

You must be logged in to vote

@hedgar2017

  1. Yes ipfs URLs in standard JSON output would be needed

  2. We upload the metadata to IPFS when deploying the contract (or while publishing on our website)

  3. CBOR is how we do it right now

But let me know what will work and what won't. And how much this metadata setup will follow solc output.

Thanks for the info.

In this case it will take a little longer, as:

  1. We'll have to look at how solc generates those URLs and reverse-engineer in Rust.
  2. Apparently, there is no minimal IPFS Rust library.
  3. CBOR is doable, but we'll have to adjust the bytecode encoding so its size is a multiple of 32 after appending it.

Replies: 4 comments 52 replies

Comment options

You must be logged in to vote
52 replies
@kumaryash90
Comment options

@hedgar2017
Comment options

@kumaryash90
Comment options

@hedgar2017
Comment options

Answer selected by idea404
@kumaryash90
Comment options

@hedgar2017
Comment options

@kumaryash90
Comment options

@hedgar2017
Comment options

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Question for compiling feature-request Feature request WIP The issue is currently being worked on
7 participants