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

Commit

Permalink
Remove requirement of function indices for decl_module!
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Sep 5, 2018
1 parent 2cc2a3b commit 5cee050
Show file tree
Hide file tree
Showing 13 changed files with 186 additions and 152 deletions.
30 changes: 15 additions & 15 deletions demo/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,26 +177,26 @@ impl_outer_dispatch! {
#[derive(Clone, PartialEq, Eq)]
#[cfg_attr(feature = "std", derive(Debug, Serialize, Deserialize))]
pub enum Call where aux: <Runtime as system::Trait>::PublicAux {
Consensus = 0,
Balances = 1,
Session = 2,
Staking = 3,
Timestamp = 4,
Democracy = 5,
Council = 6,
CouncilVoting = 7,
Consensus,
Balances,
Session,
Staking,
Timestamp,
Democracy,
Council,
CouncilVoting,
}

#[derive(Clone, PartialEq, Eq)]
#[cfg_attr(feature = "std", derive(Debug, Serialize, Deserialize))]
pub enum PrivCall {
Consensus = 0,
Balances = 1,
Session = 2,
Staking = 3,
Democracy = 4,
Council = 5,
CouncilVoting = 6,
Consensus,
Balances,
Session,
Staking,
Democracy,
Council,
CouncilVoting,
}
}

Expand Down
Loading

0 comments on commit 5cee050

Please sign in to comment.