Code Monkey home page Code Monkey logo

Comments (3)

josepot avatar josepot commented on August 19, 2024 1

If I had to make a guess about what could have happened here, is that perhaps that latest-metadata.json file was generated with an old version of the metadata codec. Please keep in mind that the metadata codec has recently changed. So, if that file was created with the prior codec, then it wont work with the current one.

Yeah, that's what happened: https://gist.github.com/ryanleecode/c0d2b7322f2252378dc50a969bd88772#file-latest_metadata-json-L9-L24

from polkadot-api.

josepot avatar josepot commented on August 19, 2024

I tried to reproduce the issue and everything seems to be working fine 🤔.

Please have a look at the test-broken-meta branch, that branch was created after the current main branch and basically what it has is a new package named experiments, which is what I've been using for running different kinds of experiments... Since I already had some code for getting the latest metadata from smoldot, the only thing that I had to do was to try to re-encode it... and everything seems to be working well.

In order to reproduce it, do this: checkout the test-broken-meta branch, run npm i from the root, then run npm run build (also from the root), and then go to packages/experimets and from inside that path run npm start.

Please feel free to make the necessary changes to reproduce the issue.

If I had to make a guess about what could have happened here, is that perhaps that latest-metadata.json file was generated with an old version of the metadata codec. Please keep in mind that the metadata codec has recently changed. So, if that file was created with the prior codec, then it wont work with the current one.

PS: I will be creating a PR later today to add the experiments package into the repo, so that we have a common playground for testing things. That should make everything easier: not just to test stuff, but also to show issues and/or ideas.

from polkadot-api.

ryanleecode avatar ryanleecode commented on August 19, 2024

Yup that was indeed the issue. thx for investigating

from polkadot-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.