You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once I send and watch any extrinsic with subxt, it tries to decode all the events. As long as there's one or more events with customized type, it fails with Err(TypeSizeUnavailable("MyStruct")). After reading some code, I finally fixed it by adding a associated type in the runtime trait like this:
Suppose we have an customized event defined in a pallet:
Once I send and watch any extrinsic with subxt, it tries to decode all the events. As long as there's one or more events with customized type, it fails with
Err(TypeSizeUnavailable("MyStruct"))
. After reading some code, I finally fixed it by adding a associated type in the runtime trait like this:I think it would be nice to document it. Also, I wonder why we need such a long list of constraint for the associated type.
The text was updated successfully, but these errors were encountered: