Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug milestone round #215

Merged
merged 8 commits into from
Sep 16, 2023
Merged

Bug milestone round #215

merged 8 commits into from
Sep 16, 2023

Conversation

f-gate
Copy link
Member

@f-gate f-gate commented Sep 15, 2023

@f-gate f-gate marked this pull request as ready for review September 16, 2023 13:41
@@ -206,7 +209,11 @@ impl<T: Config> Pallet<T> {
let expiry_block = frame_system::Pallet::<T>::block_number()
.saturating_add(<T as Config>::NoConfidenceTimeLimit::get());

Rounds::<T>::insert(project_key, RoundType::VoteOfNoConfidence, expiry_block);
Rounds::<T>::insert(
(project_key, 0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the round of no confidence is raised after milestone 0 has been approved?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're indépendant of each other due to the use of the round type key so we will be all good there :)

@samelamin samelamin merged commit c698bc6 into main Sep 16, 2023
3 checks passed
@samelamin samelamin deleted the bug-milestone-round branch September 16, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants