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

chore: update Sudid destructure docs #465

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peetzweg
Copy link

The docs destructure an array element form the Sudid event. This is no longer available. It is now a named field called sudo_result.

Came up in this substack question:
https://substrate.stackexchange.com/questions/10981/property-iserror-does-not-exist-on-type-codec-when-showing-sudo-events

And here is the actual Event defintion:
https://github.com/paritytech/polkadot-sdk/blob/e2caa813bfd2973e7a7a74aa5292433397dbc787/substrate/frame/sudo/src/lib.rs#L302-L306

Copy link
Member

@TarikGul TarikGul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes total sense. Thanks for the update

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