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

[Certora Audit] G-02. OwnerManager.changeThreshold() event update #889

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

remedcu
Copy link
Member

@remedcu remedcu commented Jan 9, 2025

This pull request includes a change which allows 1 SLOAD to be saved by emitting an existing memory variable instead of reading from storage.

  • contracts/base/OwnerManager.sol: Modified the emit statement in the setThreshold function to use the _threshold parameter instead of threshold, ensuring the value from memory is emitted.

@remedcu remedcu self-assigned this Jan 9, 2025
@remedcu remedcu changed the title G-02. OwnerManager.changeThreshold() event update [Certora Audit] G-02. OwnerManager.changeThreshold() event update Jan 9, 2025
@remedcu remedcu marked this pull request as ready for review January 9, 2025 14:24
@remedcu remedcu merged commit 2fd69b0 into main Jan 9, 2025
25 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants