Macro brush_lang::declare_storage_trait
source · [−]macro_rules! declare_storage_trait {
($trait_name:ident,$data_ty:ty) => { ... };
}
Expand description
This macro_rule
defines the storage trait.
The first argument is the name of the storage trait. The second argument is the type of storage data, which will be returned by this trait.
An example of the usage of this macro can be found in any contract implemented by this library. For example OwnableStorage.