Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

ElliotFriedman
Copy link
Contributor

@ElliotFriedman ElliotFriedman commented Feb 19, 2025

Create a new template to enable modules.

Not currently ready for review.

Should close #621

…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]>
@ElliotFriedman ElliotFriedman marked this pull request as ready for review February 21, 2025 06:45
@ElliotFriedman ElliotFriedman requested review from a team as code owners February 21, 2025 06:45
}

/// @notice Validates that the module was enabled correctly
/// @param chainId The ID of the L2 chain to validate
Copy link
Contributor

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 {
}
Copy link
Contributor

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");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is failing.

Copy link
Contributor

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

Copy link
Contributor

@blmalone blmalone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build is failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite first sepolia execution task as template
4 participants