Skip to content

Commit

Permalink
Fix AutoCompoundDelegatedStake task (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
imstar15 committed Apr 21, 2023
1 parent 3c5eccc commit 26ff00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion pallets/automation-time/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ benchmarks! {
delegator: account_id.clone(),
collator: account_id.clone(),
account_minimum: 100u32.into(),
frequency: 11,
},
};
OldAccountTasks::<T>::insert(account_id.clone(), task_id, task);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::marker::PhantomData;

use crate::{
weights::WeightInfo, AccountOf, ActionOf, BalanceOf, Config, Schedule, Seconds, TaskId, TaskOf,
weights::WeightInfo, AccountOf, ActionOf, BalanceOf, Config, Schedule, TaskId, TaskOf,
};
use codec::{Decode, Encode};
use cumulus_primitives_core::ParaId;
Expand Down Expand Up @@ -51,7 +51,6 @@ pub enum OldAction<T: Config> {
delegator: T::AccountId,
collator: T::AccountId,
account_minimum: BalanceOf<T>,
frequency: Seconds,
},
DynamicDispatch {
encoded_call: Vec<u8>,
Expand All @@ -61,9 +60,8 @@ pub enum OldAction<T: Config> {
impl<T: Config> From<OldAction<T>> for ActionOf<T> {
fn from(action: OldAction<T>) -> Self {
match action {
OldAction::AutoCompoundDelegatedStake {
delegator, collator, account_minimum, ..
} => Self::AutoCompoundDelegatedStake { delegator, collator, account_minimum },
OldAction::AutoCompoundDelegatedStake { delegator, collator, account_minimum } =>
Self::AutoCompoundDelegatedStake { delegator, collator, account_minimum },
OldAction::Notify { message } => Self::Notify { message },
OldAction::NativeTransfer { sender, recipient, amount } =>
Self::NativeTransfer { sender, recipient, amount },
Expand Down

0 comments on commit 26ff00f

Please sign in to comment.