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 #89

Closed
wants to merge 3 commits into from
Closed

fix: incomplete events #89

wants to merge 3 commits into from

Conversation

danielattilasimon
Copy link
Contributor

@danielattilasimon danielattilasimon commented Nov 28, 2024

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!
(Although the refactor into _allocateLQTYToInitiative was hard to follow on git diff 😬 )

@danielattilasimon
Copy link
Contributor Author

Looks good! (Although the refactor into _allocateLQTYToInitiative was hard to follow on git diff 😬 )

Sorry about that 😅
I guess just the memory struct would be enough to avoid stack-too-deep, let me try that.

@danielattilasimon
Copy link
Contributor Author

Ugh, it's not that easy, then I have to put a lot more stuff in memory and it gets even more expensive gas-wise.

@danielattilasimon
Copy link
Contributor Author

Closing in favor of #94

@danielattilasimon danielattilasimon deleted the event-fixes branch January 19, 2025 04:42
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