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

feat: e2e base #5

Merged
merged 5 commits into from
Nov 16, 2023
Merged

feat: e2e base #5

merged 5 commits into from
Nov 16, 2023

Conversation

0xOneTony
Copy link
Member

🤖 Linear

Closes SAF-24

Copy link

linear bot commented Nov 15, 2023

SAF-24 Create Base for E2E test

We need to create a common base contract to have as a setup for our e2e tests


contract TestConstants {
address public constant GNOSIS_SAFE_PROXY_FACTORY = 0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2;
address public constant GNOSIS_SAFE_SINGLETON = 0x3E5c63644E683549055b9Be8653de26E0B4CD36E;
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like the L2 singleton address the L1 one is the address below

0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552

function setUp() public {
StorageMirror public storageMirror;
UpdateStorageMirrorGuard public updateStorageMirrorGuard;
SafeProxy public safe;
Copy link
Contributor

@excaliborr excaliborr Nov 15, 2023

Choose a reason for hiding this comment

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

I would save the safe as an ISafe and cast the proxy into it when you deploy it, as the proxy doesnt have any functions and only uses fallbacks, will be annoying to test with it without this

Copy link
Contributor

@excaliborr excaliborr left a comment

Choose a reason for hiding this comment

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

Lgtm!

@0xOneTony 0xOneTony merged commit 7e653b4 into dev Nov 16, 2023
5 checks passed
@0xOneTony 0xOneTony deleted the feat/e2e-base branch November 16, 2023 15:44
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.

2 participants