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

Support Safe Singleton Factory #654

Merged
merged 2 commits into from
Mar 12, 2024
Merged

Support Safe Singleton Factory #654

merged 2 commits into from
Mar 12, 2024

Conversation

Uxio0
Copy link
Member

@Uxio0 Uxio0 commented Oct 10, 2023

  • Add deterministic contract deployment

Optimizes testing:

  • Speed up tests, as it's easy to check if contracts are deployed
  • Less confusing, as contract addresses will be the same to production environments

@Uxio0 Uxio0 force-pushed the deploy-test-contracts-singleton branch from 89367ab to a3e681e Compare December 20, 2023 11:32
@Uxio0 Uxio0 force-pushed the deploy-test-contracts-singleton branch from a3e681e to 9eb7caa Compare January 25, 2024 10:31
@Uxio0 Uxio0 force-pushed the deploy-test-contracts-singleton branch 2 times, most recently from 40f05fb to c4de996 Compare March 12, 2024 11:35
@Uxio0 Uxio0 marked this pull request as ready for review March 12, 2024 13:49
@Uxio0 Uxio0 requested a review from a team as a code owner March 12, 2024 13:49
- Add deterministic contract deployment

Optimizes testing:
- Speed up tests, as it's easy to check if contracts are deployed
- Less confusing, as contract addresses will be the same to production environments
@Uxio0 Uxio0 force-pushed the deploy-test-contracts-singleton branch from c4de996 to f76b2e3 Compare March 12, 2024 13:49
@@ -45,7 +45,8 @@ def setUpClass(cls):
cls.multicall = cls.ethereum_client.multicall
assert cls.multicall, "Multicall must be defined"

def get_ethereum_test_account(self) -> LocalAccount:
@classmethod
def get_ethereum_test_account(cls):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def get_ethereum_test_account(cls):
def get_ethereum_test_account(cls) -> LocalAccount:

I'm not sure if should be a classmethod because is not using anything from class.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used from another classmethod, so it has to be a classmethod

@Uxio0 Uxio0 merged commit 72b7ed6 into main Mar 12, 2024
7 checks passed
@Uxio0 Uxio0 deleted the deploy-test-contracts-singleton branch March 12, 2024 16:51
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
@Uxio0 Uxio0 self-assigned this Apr 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants