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
show how users can use Type = u32 or similar patterns to bypass all the generics within the context of a pallet
The broad idea that we want people to learn is how to "dumb-down" FRAME such that they can be free from all the genericity, if it is not relevant.
One way to achieve this is to rewrite FRAME or parts of it, what we called a major ravamp of the whole system.
But we should first try and see how far we can get by just leveraging Rust syntax, for example your suggestion for <type = u32> aka. what is known as constrained associated type in Rust.
AssetId is an example where this trick worked. BlockNumber is one where it didn't, but I am still trying to find the right combination of Rust syntax for it. I will keep dumping further ideas along this line here.
no_std
Type = u32
or similar patterns to bypass all the generics within the context of a palletThe text was updated successfully, but these errors were encountered: