Skip to content

Commit

Permalink
staking: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfridrich committed Jul 19, 2023
1 parent 2059b03 commit 9eba234
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pallets/staking/src/integrations/democracy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ where
)
.unwrap();
Pallet::<T>::initialize_staking(Origin::<T>::Root.into()).unwrap();
T::Currency::update_balance(T::HdxAssetId::get(), who, 1000_000_000_000_000i128).unwrap();
Pallet::<T>::stake(Origin::<T>::Signed(who.clone()).into(), 1000_000_000_000_000u128).unwrap();
T::Currency::update_balance(T::HdxAssetId::get(), who, 1_000_000_000_000_000i128).unwrap();
Pallet::<T>::stake(Origin::<T>::Signed(who.clone()).into(), 1_000_000_000_000_000u128).unwrap();

Check warning on line 94 in pallets/staking/src/integrations/democracy.rs

View check run for this annotation

Codecov / codecov/patch

pallets/staking/src/integrations/democracy.rs#L92-L94

Added lines #L92 - L94 were not covered by tests
}

#[cfg(feature = "runtime-benchmarks")]
Expand All @@ -103,8 +103,8 @@ where
)
.unwrap();
Pallet::<T>::initialize_staking(Origin::<T>::Root.into()).unwrap();
T::Currency::update_balance(T::HdxAssetId::get(), who, 1000_000_000_000_000i128).unwrap();
Pallet::<T>::stake(Origin::<T>::Signed(who.clone()).into(), 1000_000_000_000_000u128).unwrap();
T::Currency::update_balance(T::HdxAssetId::get(), who, 1_000_000_000_000_000i128).unwrap();
Pallet::<T>::stake(Origin::<T>::Signed(who.clone()).into(), 1_000_000_000_000_000u128).unwrap();

Check warning on line 107 in pallets/staking/src/integrations/democracy.rs

View check run for this annotation

Codecov / codecov/patch

pallets/staking/src/integrations/democracy.rs#L105-L107

Added lines #L105 - L107 were not covered by tests
}
}

Expand Down

0 comments on commit 9eba234

Please sign in to comment.