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: [spearbit-99] Correctly set post-only hook flag #20

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

adam-alchemy
Copy link
Contributor

Motivation

https://github.com/spearbit-audits/alchemy-nov-review/issues/99

We set the hasPostOnlyHooks flag incorrectly, enabling it when any post-exec hook is set.

Solution

Only set this flag when it is specifically applying over a post-exec hook.

@adam-alchemy adam-alchemy changed the title fix: [spearbit-99Correctly set post-only hook flag fix: [spearbit-99] Correctly set post-only hook flag Dec 14, 2023
@adam-alchemy adam-alchemy requested a review from jaypaik December 14, 2023 22:19
@adam-alchemy adam-alchemy reopened this Dec 14, 2023
Copy link
Collaborator

@jaypaik jaypaik left a comment

Choose a reason for hiding this comment

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

@adam-alchemy
Copy link
Contributor Author

shouldClearHasPostHooks -> shouldClearHasPostOnlyHooks

Makes sense, updated the variable naming

@adam-alchemy adam-alchemy merged commit 3e8944f into audit-2023-11-20 Jan 3, 2024
3 checks passed
@adam-alchemy adam-alchemy deleted the adam/fix-99 branch January 3, 2024 22:07
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.

3 participants