Comments (3)
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 themetadata
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.
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.
Yup that was indeed the issue. thx for investigating
from polkadot-api.
Related Issues (20)
- Round-robin over several WS endpoints
- @polkadot-api/utils should be dependency not dev dependency of @polkadot-api/substrate-client HOT 4
- Granular compatibility check HOT 1
- Whitelist TS suggestion for pallet wildcard is not working
- Document rpc node requirements HOT 15
- Typings problem on v0.11 HOT 2
- Values typed as `FixedSizeBinary` is only an instance of `Binary`
- Add `Polkadot People Chain` as a known chain HOT 8
- Generated API docs based on metadata HOT 13
- Improve descriptors package DX
- `file:` protocol break `yarn install --immutable` HOT 3
- Missing/incompatible ESM typings for `polkadot-api/polkadot-sdk-compat` HOT 1
- Internal RPC error when trying to use Polkadot-People chain with light client HOT 3
- Intermittent infinite loop when initiating multiple chains at the same time HOT 5
- support Encointer as known-chain HOT 1
- Cannot read properties of undefined (reading 'number') HOT 2
- Query results in indefinitely pending promise when encountering JSON-RPC error HOT 4
- InvalidTxError: { "type": "Invalid", "value": { "type": "Stale" } } HOT 3
- Uknown operationId HOT 3
- unioned descriptors doesn't compile in batch call HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polkadot-api.