HardhatFoundry
30,000 USDC
View results
Submission Details
Severity: low
Invalid

Code not matching with docs for `executeFromExecutor` function

Summary

In the docs executeFromExecutor function is present like this

function executeFromExecutor(ExecutionMode mode, bytes calldata executionCalldata) external payable onlyExecutorModule withHook returns (bytes[] memory returnData)

But in implemented code it is

function executeFromExecutor(
ExecutionMode mode,
bytes calldata executionCalldata
) external payable onlyExecutorModule withHook withRegistry(msg.sender, MODULE_TYPE_EXECUTOR) returns (bytes[] memory returnData) {

So the code has withRegistry extra.

Impact

The inconsistency between the docs & the code can lead to confusion and it will add unnecessary modifier which might stop valid user transaction if it is not needed.

Recommendation

If this withRegistry modifier is not needed please remove it, or if it is required update the docs accordingly.

Updates

Lead Judging Commences

0xnevi Lead Judge
12 months ago
0xnevi Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.