-
Notifications
You must be signed in to change notification settings - Fork 62
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
Enable Module Template #624
base: main
Are you sure you want to change the base?
Enable Module Template #624
Conversation
…torage .find() method Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
…EnableDeputyPauseModuleTemplate Signed-off-by: Elliot <[email protected]>
… module code length is non zero in setup, working functions against testnet, add check state logic for correct slots being written to Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
…ion, make checkStateDiff view again Signed-off-by: Elliot <[email protected]>
… import DeputyGuardianModule interface, stop overridding checkStateDiff Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
…s-io/superchain-ops into feat/enable-module-template
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
} | ||
|
||
/// @notice Validates that the module was enabled correctly | ||
/// @param chainId The ID of the L2 chain to validate |
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.
natspec nit
@@ -48,7 +48,7 @@ contract MockMultisigTask is MultisigTask { | |||
} |
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.
The build is failing here, we need this import: import {VmSafe} from "forge-std/Vm.sol";
|
||
address[] memory uniqueWrites = accountAccess.getUniqueWrites(); | ||
assertEq(uniqueWrites.length, 1, "should only write to foundation ops safe"); | ||
assertEq(uniqueWrites[0], parentMultisig, "should only write to foundation ops safe address"); |
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 line is failing.
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.
uniqueWrites[0]
is 0xfb1bffC9d739B8D520DaF37dF666da4C687191EA
which is the same as the GnosisSafeL2 predeploy: https://github.com/safe-global/safe-smart-account/blob/a1e7f4a763952f5b116a8ab4c7361b95de2083c3/CHANGELOG.md?plain=1#L444
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.
build is failing
Create a new template to enable modules.
Not currently ready for review.
Should close #621