Skip to content

Commit

Permalink
Change Base L2 Gnosis Safe master copy address
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jan 3, 2025
1 parent 906ed08 commit 5497c24
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions eth_defi/safe/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def deploy_safe(
deployer: LocalAccount,
owners: list[HexAddress | str],
threshold: int,
master_copy_address = "0x41675C099F32341bf84BFc5382aF534df5C7461a",
master_copy_address = "0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",
) -> Safe:
"""Deploy a new Safe wallet.
Expand All @@ -33,10 +33,17 @@ def deploy_safe(
Must be LocalAccount due to Safe library limitations.
:param master_copy_address:
See Safe info.
- https://help.safe.global/en/articles/40834-verify-safe-creation
- https://basescan.org/address/0x41675C099F32341bf84BFc5382aF534df5C7461a
Default Safe 1.4.1 layer two master copy address.
See ``MASTER_COPIES``
- Use +L2 version tag for Layer two chains
- https://github.com/safe-global/safe-eth-py/blob/76489e9641f4f1f4ea4dbbcee2dc2ce42e84d24f/safe_eth/safe/addresses.py#L16
Discussion
- https://ethereum.stackexchange.com/questions/167329/programmatically-creating-safe-ui-compatible-multisig-wallets
"""

assert isinstance(deployer, LocalAccount), f"Safe can be only deployed using LocalAccount"
Expand Down

0 comments on commit 5497c24

Please sign in to comment.