File tree 1 file changed +1
-2
lines changed
substrate-node/pallets/pallet-dao/src 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ impl<T: Config> Pallet<T> {
41
41
) ;
42
42
43
43
let now = frame_system:: Pallet :: < T > :: block_number ( ) ;
44
- let minimum_threshold = T :: MotionMinThreshold :: get ( ) ;
45
44
let mut end = now + T :: MotionDuration :: get ( ) ;
46
45
// Check if duration is set and is less than 30 days and more than 1 Day
47
46
if let Some ( motion_duration) = duration {
@@ -52,7 +51,7 @@ impl<T: Config> Pallet<T> {
52
51
end = now + motion_duration;
53
52
}
54
53
// 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 ) ;
56
55
57
56
let index = Self :: proposal_count ( ) ;
58
57
<ProposalCount < T > >:: mutate ( |i| * i += 1 ) ;
You can’t perform that action at this time.
0 commit comments