Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MSAAdvanced.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ contract MSAAdvanced is IMSA, ExecutionHelper, ModuleManager, HookManager {
)
external
payable
onlyEntryPointOrSelf
onlyEntryPoint
{
bytes calldata callData = userOp.callData[4:];
(bool success,) = address(this).delegatecall(callData);
Expand Down
2 changes: 1 addition & 1 deletion src/MSABasic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ contract MSABasic is IMSA, ExecutionHelper, ModuleManager {
)
external
payable
onlyEntryPointOrSelf
onlyEntryPoint
{
bytes calldata callData = userOp.callData[4:];
(bool success,) = address(this).delegatecall(callData);
Expand Down
1 change: 1 addition & 0 deletions src/core/AccountBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract AccountBase {
/////////////////////////////////////////////////////
// Access Control
////////////////////////////////////////////////////

modifier onlyEntryPointOrSelf() virtual {
if (!(msg.sender == entryPoint() || msg.sender == address(this))) {
revert AccountAccessUnauthorized();
Expand Down