Skip to content

Commit 03c2703

Browse files
committed
fix: remove delegatecall in fallback
1 parent 886f7e6 commit 03c2703

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/core/ModuleManager.sol

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,5 @@ abstract contract ModuleManager is AccountBase, Receiver {
296296
return(returnDataPtr, returndatasize())
297297
}
298298
}
299-
300-
if (calltype == CALLTYPE_DELEGATECALL) {
301-
assembly {
302-
calldatacopy(0, 0, calldatasize())
303-
let result := delegatecall(gas(), handler, 0, calldatasize(), 0, 0)
304-
returndatacopy(0, 0, returndatasize())
305-
switch result
306-
case 0 { revert(0, returndatasize()) }
307-
default { return(0, returndatasize()) }
308-
}
309-
}
310299
}
311300
}

0 commit comments

Comments
 (0)