Questions tagged [trait]
The trait tag has no usage guidance.
2
questions
0
votes
2
answers
21
views
decl_storage macro syntax
decl_storage! {
trait Store for Module<T: Trait> as KittyStorage {
Kitties get(kitty): map T::Hash => Kitty<T::Hash, T::Balance>;
What is this for use?
What is Store ? is ...
1
vote
1
answer
17
views
Explanation on this syntax: pub trait Config<I: 'static = ()>: frame_system::Config
I was contributing on pallet-assets and I found it hard to understand this syntax:
pub trait Config<I: 'static = ()>: frame_system::Config
Care to explain in details and examples?