File tree Expand file tree Collapse file tree 3 files changed +5
-19
lines changed
Expand file tree Collapse file tree 3 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ pub mod pallet {
171171 pub type MessageRootToSign < T : Config > =
172172 StorageValue < _ , MessageRootSigned < T :: MaxAuthorities > , OptionQuery > ;
173173
174+ #[ derive( frame_support:: DefaultNoBound ) ]
174175 #[ pallet:: genesis_config]
175176 pub struct GenesisConfig < T >
176177 where
@@ -179,15 +180,7 @@ pub mod pallet {
179180 /// The genesis authorities.
180181 pub authorities : Vec < T :: AccountId > ,
181182 }
182- #[ cfg( feature = "std" ) ]
183- impl < T > Default for GenesisConfig < T >
184- where
185- T : Config ,
186- {
187- fn default ( ) -> Self {
188- GenesisConfig { authorities : Vec :: new ( ) }
189- }
190- }
183+
191184 #[ pallet:: genesis_build]
192185 impl < T : Config > GenesisBuild < T > for GenesisConfig < T > {
193186 fn build ( & self ) {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ pub mod pallet {
4545 #[ pallet:: getter( fn commitment_contract) ]
4646 pub type CommitmentContract < T > = StorageValue < _ , H160 , ValueQuery > ;
4747
48- #[ cfg_attr ( feature = "std" , derive( Default ) ) ]
48+ #[ derive( Default ) ]
4949 #[ pallet:: genesis_config]
5050 pub struct GenesisConfig {
5151 pub commitment_contract : H160 ,
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ pub mod pallet {
233233 #[ pallet:: getter( fn elapsed_time) ]
234234 pub type ElapsedTime < T : Config > = StorageValue < _ , Moment , ValueQuery > ;
235235
236+ #[ derive( frame_support:: DefaultNoBound ) ]
236237 #[ pallet:: genesis_config]
237238 pub struct GenesisConfig < T : Config > {
238239 /// Current timestamp.
@@ -244,15 +245,7 @@ pub mod pallet {
244245 /// Genesis collator preferences.
245246 pub collators : Vec < ( T :: AccountId , Balance ) > ,
246247 }
247- #[ cfg( feature = "std" ) ]
248- impl < T > Default for GenesisConfig < T >
249- where
250- T : Config ,
251- {
252- fn default ( ) -> Self {
253- GenesisConfig { now : 0 , elapsed_time : 0 , collator_count : 0 , collators : Vec :: new ( ) }
254- }
255- }
248+
256249 #[ pallet:: genesis_build]
257250 impl < T : Config > GenesisBuild < T > for GenesisConfig < T > {
258251 fn build ( & self ) {
You can’t perform that action at this time.
0 commit comments