Skip to content

Commit

Permalink
fix: live networks
Browse files Browse the repository at this point in the history
  • Loading branch information
kx9x committed Jun 19, 2024
1 parent 194f4db commit 6483563
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion multisig_ci/ci_override.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from eth_abi import encode
from eth_utils import keccak
from typing import Optional, Union
from brownie.network.account import LocalAccount
from brownie.network.account import LocalAccount, Account
from brownie.network.contract import _explorer_tokens
from brownie._config import CONFIG
from _pytest.monkeypatch import MonkeyPatch
Expand Down Expand Up @@ -54,6 +54,10 @@ def mine_override(timestamp: Optional[int] = None) -> None:
class DelegateSafeBase(BrownieSafeBase):
@custom_sentry_trace
def __init__(self, address, ethereum_client):
if CONFIG.network_type != "development":
acct = Account(address)
if acct not in self._accounts:
self._accounts.append(acct)

super().__init__(address, ethereum_client)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "multisig_ci"
version = "0.8.20"
version = "0.8.21"
description = "Gnosis safe ci scripts."
authors = ["kx9x <[email protected]>"]
license = "AGPLv3"
Expand Down

0 comments on commit 6483563

Please sign in to comment.