Skip to content

Workaround for pallet missing declare error type#259

Closed
jasl wants to merge 1 commit into
paritytech:masterfrom
jasl:workaround-missing-error-metadata
Closed

Workaround for pallet missing declare error type#259
jasl wants to merge 1 commit into
paritytech:masterfrom
jasl:workaround-missing-error-metadata

Conversation

@jasl
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

jasl commented Apr 2, 2021

Ops... seems CI failure not my mistake

@cla-bot-2021
Copy link
Copy Markdown

cla-bot-2021 Bot commented May 11, 2021

User @jasl, please sign the CLA here.

@h4x3rotab
Copy link
Copy Markdown
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