docs icon indicating copy to clipboard operation
docs copied to clipboard

chore: update `Sudid` destructure docs

Open peetzweg opened this issue 1 year ago • 0 comments

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

peetzweg avatar Feb 16 '24 11:02 peetzweg