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

Commit c0897ac

Browse files
bkchrgavofyork
authored andcommitted
Remove requirement of function indices for decl_module! (#666)
1 parent 3d027c3 commit c0897ac

File tree

13 files changed

+185
-152
lines changed

13 files changed

+185
-152
lines changed

demo/runtime/src/lib.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -193,26 +193,26 @@ impl_outer_dispatch! {
193193
#[derive(Clone, PartialEq, Eq)]
194194
#[cfg_attr(feature = "std", derive(Debug, Serialize, Deserialize))]
195195
pub enum Call where aux: <Runtime as system::Trait>::PublicAux {
196-
Consensus = 0,
197-
Balances = 1,
198-
Session = 2,
199-
Staking = 3,
200-
Timestamp = 4,
201-
Democracy = 5,
202-
Council = 6,
203-
CouncilVoting = 7,
196+
Consensus,
197+
Balances,
198+
Session,
199+
Staking,
200+
Timestamp,
201+
Democracy,
202+
Council,
203+
CouncilVoting,
204204
}
205205

206206
#[derive(Clone, PartialEq, Eq)]
207207
#[cfg_attr(feature = "std", derive(Debug, Serialize, Deserialize))]
208208
pub enum PrivCall {
209-
Consensus = 0,
210-
Balances = 1,
211-
Session = 2,
212-
Staking = 3,
213-
Democracy = 4,
214-
Council = 5,
215-
CouncilVoting = 6,
209+
Consensus,
210+
Balances,
211+
Session,
212+
Staking,
213+
Democracy,
214+
Council,
215+
CouncilVoting,
216216
}
217217
}
218218

0 commit comments

Comments
 (0)