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

Feat/executefromexecutor testing #29

Merged
merged 10 commits into from
Mar 14, 2024

Conversation

Aboudjem
Copy link
Contributor

No description provided.

@Aboudjem Aboudjem self-assigned this Mar 14, 2024
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.33%. Comparing base (99d3492) to head (75e4215).

Additional details and impacted files
@@                   Coverage Diff                   @@
##           feat/module-testing      #29      +/-   ##
=======================================================
+ Coverage                45.34%   48.33%   +2.98%     
=======================================================
  Files                       12       10       -2     
  Lines                      247      240       -7     
  Branches                    31       31              
=======================================================
+ Hits                       112      116       +4     
+ Misses                     135      124      -11     
Flag Coverage Δ
foundry 48.33% <ø> (+2.98%) ⬆️
hardhat 48.33% <ø> (+2.98%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@livingrockrises livingrockrises changed the base branch from feat/module-testing to feat/phase-1-implementations March 14, 2024 10:15
@livingrockrises livingrockrises changed the base branch from feat/phase-1-implementations to feat/module-testing March 14, 2024 15:47
@livingrockrises livingrockrises marked this pull request as ready for review March 14, 2024 15:48
Copy link

🤖 Slither Analysis Report 🔎

Slither report

Slither report

THIS CHECKLIST IS NOT COMPLETE. Use --show-ignored-findings to show all the results.
Summary
🔴 - name-reused (1 results) (High)
🟡 - unused-return (5 results) (Medium)
🔵 - shadowing-local (1 results) (Low)
🔵 - missing-zero-check (1 results) (Low)
🔵 - reentrancy-events (2 results) (Low)
ℹ️ - assembly (9 results) (Informational)
ℹ️ - dead-code (6 results) (Informational)
ℹ️ - low-level-calls (1 results) (Informational)
ℹ️ - naming-convention (1 results) (Informational)
ℹ️ - redundant-statements (1 results) (Informational)

name-reused

🔴 Impact: High
🔴 Confidence: High

interfaces/base/IHookManager.sol#L8-L11

unused-return

🟡 Impact: Medium
🟡 Confidence: Medium

base/ModuleManager.sol#L177-L187

  • ID-2
    SmartAccount.execute(ModeCode,bytes) ignores return value by (callType,execType) = mode.decode()

SmartAccount.sol#L46-L74

  • ID-3
    SmartAccount.executeFromExecutor(ModeCode,bytes) ignores return value by (callType,execType) = mode.decode()

SmartAccount.sol#L76-L129

  • ID-4
    SmartAccount.supportsExecutionMode(ModeCode) ignores return value by (callType,execType) = mode.decode()

SmartAccount.sol#L192-L214

base/ModuleManager.sol#L165-L175

shadowing-local

🔵 Impact: Low
🔴 Confidence: High

SmartAccount.sol#L32

missing-zero-check

🔵 Impact: Low
🟡 Confidence: Medium

factory/AccountFactory.sol#L11

reentrancy-events

🔵 Impact: Low
🟡 Confidence: Medium

SmartAccount.sol#L140-L162

SmartAccount.sol#L165-L180

assembly

ℹ️ Impact: Informational
🔴 Confidence: High

base/Storage.sol#L18-L22

  • ID-11
    SmartAccount.validateUserOp(PackedUserOperation,bytes32,uint256) uses assembly
    • INLINE ASM

SmartAccount.sol#L26-L43

lib/ModeLib.sol#L120-L124

base/AccountExecution.sol#L108-L123

lib/ModeLib.sol#L87-L100

base/AccountExecution.sol#L71-L86

base/AccountExecution.sol#L50-L69

lib/ExecLib.sol#L11-L27

base/AccountExecution.sol#L89-L105

dead-code

ℹ️ Impact: Informational
🟡 Confidence: Medium

base/ModuleManager.sol#L159-L163

lib/ModeLib.sol#L139-L141

base/AccountExecution.sol#L89-L105

base/AccountExecution.sol#L38-L48

base/AccountExecution.sol#L71-L86

base/AccountExecution.sol#L108-L123

low-level-calls

ℹ️ Impact: Informational
🔴 Confidence: High

  • ID-25
    🔵 Low level call in SmartAccount.executeUserOp(PackedUserOperation,bytes32):
    • (success) = address(this).delegatecall(callData)

SmartAccount.sol#L131-L138

naming-convention

ℹ️ Impact: Informational
🔴 Confidence: High

factory/AccountFactory.sol#L9

redundant-statements

ℹ️ Impact: Informational
🔴 Confidence: High

  • ID-27
    Redundant expression "additionalContext" inSmartAccount

SmartAccount.sol#L244

This comment was automatically generated by the GitHub Actions workflow.

@livingrockrises livingrockrises merged commit 936c079 into feat/module-testing Mar 14, 2024
8 of 9 checks passed
@livingrockrises livingrockrises deleted the feat/executefromexecutor-testing branch March 14, 2024 15:55
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.

2 participants