Skip to content
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

Workaround for pallet missing declare error type #259

Closed

Conversation

jasl
Copy link
Contributor

@jasl jasl commented Apr 1, 2021

Ref Substrate issue paritytech/substrate#8501

I'd like fix that issue, but I think subxt still need to do a workaround because it would crash inside subxt.

In short,
when pallet missing declare Error type, the errors field in metadata will be empty,
then, if Subxt parsing block meets error which not list in metadata, it will trigger https://github.com/paritytech/substrate-subxt/blob/master/src/metadata.rs#L256
then, it will crash inside Subxt

@jasl jasl force-pushed the workaround-missing-error-metadata branch from e679eaf to c355ad0 Compare April 1, 2021 20:37
@jasl jasl force-pushed the workaround-missing-error-metadata branch from c355ad0 to 9d75942 Compare April 1, 2021 20:40
@jasl
Copy link
Contributor Author

jasl commented Apr 2, 2021

Ops... seems CI failure not my mistake

@cla-bot-2021
Copy link

cla-bot-2021 bot commented May 11, 2021

User @jasl, please sign the CLA here.

@h4x3rotab
Copy link
Contributor

We can close it since #294 was merged

@jasl jasl closed this Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants