Skip to content

[VEN-3301] Executors guard#2

Open
kkirka wants to merge 11 commits into
mainfrom
feat/executors-guard
Open

[VEN-3301] Executors guard#2
kkirka wants to merge 11 commits into
mainfrom
feat/executors-guard

Conversation

@kkirka
Copy link
Copy Markdown
Contributor

@kkirka kkirka commented Jul 2, 2025

This guard allows only the authorized executors to execute transactions in a Safe wallet. Signers will be able to add/remove executors with a Safe transaction.

@kkirka kkirka force-pushed the feat/executors-guard branch from 517d7d9 to a664ea7 Compare July 2, 2025 12:29
Comment thread contracts/ExecutorsGuard.sol Outdated
/// @notice Adds multiple executors to the calling Safe's executor list
/// @param executorsList Array of executor addresses to add
/// @dev This function can only be called by contracts (Safe wallets)
function addExecutors(address[] calldata executorsList) external onlyContract {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are there any potential risks if a malicious contract invokes this function?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see any security issues if it's invoked by an malicious contract. A malicious contract cannot add a executor for a different contract address. It can only add executors for itself.

@github-actions
Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Health
contracts 100% 100%
Summary 100% (32 / 32) 100% (20 / 20)

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