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: _isValidAction bug - only record top level call access kind #701

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

blmalone
Copy link
Contributor

@blmalone blmalone commented Mar 1, 2025

I encountered this issue when I was trying to make a delegatecall from within a _build() function in a template. If the delegatecall contains calls inside the top level delegate call, then they incorrectly get added as a valid action. I do not believe this is intended behavior.

Would be good to get @prat-gpt to review as I know you wrote this logic originally.

I was wondering "why don't non-top level calls get included in valid actions right now?". I believe the reason they don't is because of the line bool accessorIsParent = (access.accessor == parentMultisig); in _isValidAction.

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.

1 participant