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
Perhaps in our DecodeAsType/DecodeAsFields (and the scale-encode versions) we should just constrain TypeId: Clone + Send + Sync + 'static or something like that, so our impls can rely on such things better.
This could also exist in scale-type-resolver itself.
The text was updated successfully, but these errors were encountered:
jsdw
changed the title
Should TypeId always require Clone + 'static?
Should TypeId always require eg Clone + 'static?
Mar 4, 2024
Eg in
scale-value
, we need to clone TypeIds. Requiring this.paritytech/scale-value#45 (comment)
Perhaps in our
DecodeAsType
/DecodeAsFields
(and thescale-encode
versions) we should just constrainTypeId: Clone + Send + Sync + 'static
or something like that, so our impls can rely on such things better.This could also exist in
scale-type-resolver
itself.The text was updated successfully, but these errors were encountered: