Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Jun 27, 2024
1 parent dec05cd commit 2fd5421
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/account/PluginManager2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ abstract contract PluginManager2 {

for (uint256 i = 0; i < permissionFunctions.length; ++i) {
ExecutionHook memory permissionFunction = permissionFunctions[i];
permissionFunction.requireUOContext = true;

if (
!_storage.validationData[validationFunction].permissionHooks.add(toSetValue(permissionFunction))
Expand Down
12 changes: 2 additions & 10 deletions src/account/UpgradeableModularAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -540,17 +540,9 @@ contract UpgradeableModularAccount is
if (isPreHook) {
bytes memory preExecHookReturnData;

// isPackedUO implies it is a permission hook
if (isPackedUO) {
if (false) {
/**
* TODO
*/
preExecHookReturnData = _runPreExecHook(hookFunction, data);
} else {
PackedUserOperation memory uo = abi.decode(data, (PackedUserOperation));
preExecHookReturnData =
_runPreExecHook(hookFunction, abi.encodePacked(msg.sender, msg.value, uo.callData));
}
preExecHookReturnData = _runPreExecHook(hookFunction, data);
} else {
preExecHookReturnData =
_runPreExecHook(hookFunction, abi.encodePacked(msg.sender, msg.value, data));
Expand Down

0 comments on commit 2fd5421

Please sign in to comment.