Skip to content

Commit d8613fc

Browse files
committed
refactor: tiny refactor
1 parent deb58dd commit d8613fc

File tree

1 file changed

+1
-2
lines changed
  • substrate-node/pallets/pallet-dao/src

1 file changed

+1
-2
lines changed

substrate-node/pallets/pallet-dao/src/dao.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ impl<T: Config> Pallet<T> {
4141
);
4242

4343
let now = frame_system::Pallet::<T>::block_number();
44-
let minimum_threshold = T::MotionMinThreshold::get();
4544
let mut end = now + T::MotionDuration::get();
4645
// Check if duration is set and is less than 30 days and more than 1 Day
4746
if let Some(motion_duration) = duration {
@@ -52,7 +51,7 @@ impl<T: Config> Pallet<T> {
5251
end = now + motion_duration;
5352
}
5453
// threshold should be at least the configured minimum threshold for a motion in runtime
55-
ensure!(threshold >= minimum_threshold, Error::<T>::ThresholdTooLow);
54+
ensure!(threshold >= T::MotionMinThreshold::get(), Error::<T>::ThresholdTooLow);
5655

5756
let index = Self::proposal_count();
5857
<ProposalCount<T>>::mutate(|i| *i += 1);

0 commit comments

Comments
 (0)