Closed ntn-x2 closed 6 months ago
@ermalkaleci thanks for the prompt response! So I get that there is not a single source of error, but I have to try the different options tried in the issue you linked? Or do you want me to comment on that issue?
the above error is because of the wrong version
Ok thank you. By wrong version I assume you mean the wrong chopsticks version? What is the latest version of chopstick that works with a runtime based on Substrate 1.0.0?
I tried state_version
with value 0
, 1
, and 5
, based on the linked issues, and they all returned the same error. The runtime is a template runtime, so I can change any value and restart the chain. What value should I put in there to make it work with chopsticks? Runtime is this: https://github.com/KILTprotocol/kilt-node/blob/develop/dip-template/runtimes/dip-consumer/src/lib.rs. Is there maybe something missing in the state, that I should populate at genesis time? I don't think so, as everything is extracted from the WASM blob, right?
Plus, the only thing I am putting in the config file, for testing purposes, is the endpoint of a local node running that runtime. No WASM override yet, which I'd like to introduce once I have the fork running, for debugging reasons.
the previous issue is getting decode error because they have state_version: 5 which is invalid. I don't know what's your issue but smoldot fails to decode your runtime version. You will need to do some debugging. Also kilt seems to work with chopsticks, what endpoint are you trying to test?
@ermalkaleci yes, trying to fork Peregrine and Spiritnet work. We have a couple of "template" runtimes that showcase how to use a combination of pallets we are releasing soon. The template takes most of the code from the Peregrine runtime, so I really am not sure what the cause could be. I will try to debug it a bit more, but you confirm that state_version
should be set to 0
, as it is the case with our live networks?
I am spinning up a local node with the template runtime and connecting to it, which fails as soon as I open PolkadotJS Apps with the error I showed above.
upload the wasm here, I will give it a try
in your case it seems it can't decode runtimeVersion.apis
We experience the same problem on Polimec (wss://rpc.polimec.org). What can we do to help solve/debug the problem?
From the branch at: https://github.com/KILTprotocol/kilt-node/tree/aa/dip-improvements, and the runtime
dip-consumer-runtime-template
.Full error:
Runtime is based on Polkadot 0.9.43, attached to a Rococo local also running 0.9.43. Is there a specific version of chopsticks I should use for this, or is the error due to something else?