mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Disambiguate BlockNumber type in decl_module (#7061)
* Disambiguate `BlockNumber` type in `decl_module` * fix `frame-support-tests` * fix ui tests * fix trait order
This commit is contained in:
@@ -29,7 +29,7 @@ mod no_instance {
|
||||
}
|
||||
|
||||
frame_support::decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {}
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin, system=self {}
|
||||
}
|
||||
|
||||
frame_support::decl_storage!{
|
||||
@@ -50,11 +50,13 @@ mod no_instance {
|
||||
}
|
||||
|
||||
mod instance {
|
||||
use super::no_instance;
|
||||
|
||||
pub trait Trait<I = DefaultInstance>: super::no_instance::Trait {}
|
||||
|
||||
frame_support::decl_module! {
|
||||
pub struct Module<T: Trait<I>, I: Instance = DefaultInstance>
|
||||
for enum Call where origin: T::Origin {}
|
||||
for enum Call where origin: T::Origin, system=no_instance {}
|
||||
}
|
||||
|
||||
frame_support::decl_storage!{
|
||||
|
||||
Reference in New Issue
Block a user