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

Commit 17e95e2

Browse files
author
Andrei Navoichyk
committed
used nobody
1 parent f019673 commit 17e95e2

File tree

1 file changed

+3
-3
lines changed
  • frame/ddc-metrics-offchain-worker/src

1 file changed

+3
-3
lines changed

frame/ddc-metrics-offchain-worker/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const MS_PER_DAY: u64 = 24 * 3600 * 1000;
133133

134134
decl_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,

0 commit comments

Comments
 (0)