Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Crust pallet not found #251

Closed
PaTara43 opened this issue Sep 28, 2022 · 2 comments
Closed

Crust pallet not found #251

PaTara43 opened this issue Sep 28, 2022 · 2 comments

Comments

@PaTara43
Copy link

Hi! There is an issue opened crustio/crust#894 and I don't understand whether it's a type registry issue (think not, since we are talking about inability to use the pallet) or a pallet discovery issue. Any ideas if something should be updated in py-substrate-interface?

@arjanz
Copy link
Member

arjanz commented Sep 28, 2022

Ok I did some tests and the culprit is actually manually setting the type registry to type_registry_preset="crust".

This was necessary before in order to interpret the types used in the runtime, but I noticed Crust Shadow on Kusama upgraded to MetadataV14, which embeds its own type registry (PortableRegistry), so that drops the need to set manual types.

After analyzing what PolkadotJS generate for extrinsic bytes I found out the real culprit is actually the change in Address from AccountId to MultiAddress, which adds one extra bytes in front of the AccountId and because that was missing, it messed up the decoded by the runtime and caused the panic.

TL;DR: you can omit the type_registry_preset="crust" from now on and even after runtime upgrades the types will be loaded automatically because the runtime upgraded to MetadataV14.

@PaTara43
Copy link
Author

It worked! Thanks, I would never figured it out without your help.

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants