This repository was archived by the owner on May 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
frame/ddc-metrics-offchain-worker/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ const MS_PER_DAY: u64 = 24 * 3600 * 1000;
133133
134134decl_module ! {
135135 /// A public part of the pallet.
136- pub struct Module <T : Config > for enum Call where
136+ pub struct Module <T : Config > for enum Call where
137137 origin: T :: Origin ,
138138 <T as frame_system:: Config >:: AccountId : AsRef <[ u8 ] >,
139139 <T as frame_system:: Config >:: AccountId : UncheckedFrom <T :: Hash >,
@@ -340,7 +340,7 @@ impl<T: Config> Module<T>
340340 ) -> ResultStr < u64 > {
341341 let call_data = Self :: encode_get_current_period_ms ( ) ;
342342 let contract_exec_result = pallet_contracts:: Pallet :: < T > :: bare_call (
343- Default :: default ( ) ,
343+ < T as frame_system :: Config > :: AccountId :: decode ( & mut sp_runtime :: traits :: TrailingZeroInput :: zeroes ( ) ) . unwrap ( ) ,
344344 contract_id,
345345 0u32 . into ( ) ,
346346 100_000_000_000 ,
@@ -588,7 +588,7 @@ impl<T: Config> Module<T>
588588 ) -> ResultStr < Vec < DDCNode > > {
589589 let call_data = Self :: encode_get_all_ddc_nodes ( ) ;
590590 let contract_exec_result = pallet_contracts:: Pallet :: < T > :: bare_call (
591- Default :: default ( ) ,
591+ < T as frame_system :: Config > :: AccountId :: decode ( & mut sp_runtime :: traits :: TrailingZeroInput :: zeroes ( ) ) . unwrap ( ) ,
592592 contract_id,
593593 0u32 . into ( ) ,
594594 100_000_000_000 ,
You can’t perform that action at this time.
0 commit comments