Closed filmakarov closed 1 month ago
Generated at commit: 199d84e7dd82a7913558806e955c6068f2ba0573, compared to commit: c81e30ca56de428364382ab71f16c086fc0fa701
Contract | Method | Avg (+/-) | % |
---|---|---|---|
Nexus | execute executeFromExecutor |
-127 ✅ -169 ✅ |
-0.27% -0.83% |
Attention: Patch coverage is 82.85714%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 86.40%. Comparing base (
c81e30c
) to head (27b8627
). Report is 8 commits behind head on dev.
Files with missing lines | Patch % | Lines |
---|---|---|
contracts/base/ModuleManager.sol | 82.85% | 6 Missing :warning: |
This comment was automatically generated by the GitHub Actions workflow.
Fix the audit issue #58 where fallback was using assembly return so the
hook.postCheck
was never used.Proposed solution as per recommendations is the following:
fallback()
functionThe logic in the fallback now is the following: 1) do preCheck, store result in memory 2) if there's a fallback handler, call it. if not successful, revert. 3) else check if some of
onERCXXXReceived
methods were called. if this is neither the case, revert 4) do postCheck 5) return result