-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some runtime_call can not decode parameters #339
Comments
No you are doing everything right, it is a missing type composition for Until then it is manual upkeep: https://github.com/polkascan/py-scale-codec/blob/34e0cc74e511251b71fbb2974a968fe1435cc3fd/scalecodec/type_registry/core.json#L3026 I will add the missing types and release this in scalecodec |
Thanks for fast response. |
Because then the types defined for that runtime call (https://github.com/polkascan/py-scale-codec/blob/34e0cc74e511251b71fbb2974a968fe1435cc3fd/scalecodec/type_registry/core.json#L2992) are loaded in the type registry and globally available, which also defined the missing type. I didn't want to clutter the type registry with unused types, so I chose a more on demand approach. But this also introduced some redundancy in the definitions though. Hopefully V15 is implemented soon and then this will not be an issue anymore. |
Thanks for the explanation Confirmed v1.7.1 do not have this error, closing the issue. |
I have a
runtime_call
, which according to documentation should work:Full script 1
But it fail with error:
I found very similar
runtime_call
in tests if I add it to my code, script runs without error:Full script 2
Output:
Is it bug or I should run some commands to initialize state before running
runtime_call
?Enviroment
The text was updated successfully, but these errors were encountered: