Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Companion for #6500 (decl_module: frame_system as default ident) (#1314)
Browse files Browse the repository at this point in the history
* Update decl_storage usage with frame_system as default ident.

* More decl_module usage update.

* 'Update substrate'

Co-authored-by: parity-processbot <>
  • Loading branch information
shaunxw committed Jul 8, 2020
1 parent 482abf8 commit 1e1169d
Show file tree
Hide file tree
Showing 13 changed files with 149 additions and 150 deletions.
275 changes: 137 additions & 138 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion runtime/common/src/attestations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ decl_error! {

decl_module! {
/// Parachain-attestations module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

/// Provide candidate receipts for parachains, in ascending order by id.
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ decl_storage! {
}

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 = system {
type Error = Error<T>;

/// The Prefix that is used in signed Ethereum messages for this network
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/crowdfund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ decl_error! {
}

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 = system {
type Error = Error<T>;

const ModuleId: ModuleId = T::ModuleId::get();
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/parachains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ decl_error! {

decl_module! {
/// Parachains module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

fn on_initialize(now: T::BlockNumber) -> Weight {
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/registrar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ decl_error! {

decl_module! {
/// Parachains module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

fn deposit_event() = default;
Expand Down
2 changes: 1 addition & 1 deletion runtime/common/src/slots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ decl_error! {
}

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 = system {
type Error = Error<T>;

fn deposit_event() = default;
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ decl_error! {

decl_module! {
/// The parachains configuration module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

/// Set the validation upgrade frequency.
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/inclusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ decl_error! {

decl_module! {
/// The parachain-candidate inclusion module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;
}
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/inclusion_inherent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ decl_error! {

decl_module! {
/// The inclusion inherent module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

fn on_initialize() -> Weight {
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ decl_error! {

decl_module! {
/// The initializer module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;

fn on_initialize(now: T::BlockNumber) -> Weight {
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/paras.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ decl_error! {

decl_module! {
/// The parachains configuration module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;
}
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ decl_error! {

decl_module! {
/// The scheduler module.
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin {
pub struct Module<T: Trait> for enum Call where origin: <T as system::Trait>::Origin, system = system {
type Error = Error<T>;
}
}
Expand Down

0 comments on commit 1e1169d

Please sign in to comment.