Programmable Smart Wallet
What is a PROGRAMMABLE smart wallet
What is a Smart Wallet?
Account Types
function installModuleDitto() public {
PackedUserOperation[] memory ops = new PackedUserOperation[](1);
ops[0] = _prepareUserOp(
VALIDATION_TYPE_ROOT,
abi.encodeWithSelector(
kernelAccount.installModule.selector, // given example on ZeroDev Kernel
2,
address(moduleAutomate7579),
abi.encodePacked(address(0), abi.encode(abi.encodePacked("executorData"), abi.encodePacked("")))
),
true
);
entrypoint.handleOps(ops, payable(address(0xdeadbeef)));
}Last updated