-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: various bugs/missing features #7
Conversation
…pad via delegatecall
Feature/safe owner cleanup
Feature/safe owner launchpad
@@ -25,8 +32,16 @@ import { MODULE_TYPE_VALIDATOR } from "erc7579/interfaces/IERC7579Module.sol"; | |||
* technique](https://github.com/safe-global/safe-modules/pull/184) | |||
* @author rhinestone | zeroknots.eth | |||
*/ | |||
contract Safe7579Launchpad is IAccount, SafeStorage { | |||
event ModuleInstalled(uint256 moduleTypeId, address module); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now in IERC7579AccountEvents
@@ -110,6 +125,28 @@ contract Safe7579Launchpad is IAccount, SafeStorage { | |||
}); | |||
} | |||
|
|||
function addSafe7579( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
additional function that allows existing safe accounts to get safe7579 with a single transaction
// because the `EncodedSafeOpStruct` struct has no "dynamic" fields so its memory layout | ||
// is identical to the | ||
// result of `abi.encode`-ing the individual fields. | ||
EncodedSafeOpStruct memory encodedSafeOp = EncodedSafeOpStruct({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fixing discussed struct change:
#3
} from "@ERC4337/account-abstraction/contracts/core/UserOperationLib.sol"; | ||
import { SAFE_OP_TYPEHASH, ISafeOp } from "../interfaces/ISafeOp.sol"; | ||
|
||
abstract contract SafeOp is ISafeOp { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this logic to an abstract contract as this functionality has to be utilized by both Safe7579 and Launchpad
This PR fixes a few things: