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

fix: incomplete events [alternative version] #94

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

danielattilasimon
Copy link
Contributor

@danielattilasimon danielattilasimon commented Dec 3, 2024

Alternative version of #89 with more readable diff, hopefully...

Add missing boldAccrued to SnapshotVotes.
Add missing vetos to SnapshotVotesForInitiative.
Add missing success flags when calling hooks.
Add indexed to select parameters.
Do call the onRegisterInitiative() hook for initial initiatives.

Had to slightly refactor _allocateLQTY() to avoid running into "stack too deep".

Fixes CS-V2Gov-040.

Add missing `boldAccrued` to `SnapshotVotes`.
Add missing `vetos` to `SnapshotVotesForInitiative`.
Add missing success flags when calling hooks.
Add `indexed` to select events.

Had to slightly refactor `_allocateLQTY()` to avoid running into
"stack too deep".

Fixes CS-V2Gov-040.
Copy link
Contributor

@bingen bingen left a comment

Choose a reason for hiding this comment

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

Looks good! Yes, much easier to review, and it will be much better to merge with Rick’s refactor changes, so I would use this one.

@danielattilasimon danielattilasimon merged commit 9d1bd2a into main Dec 4, 2024
3 checks passed
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