diff --git a/multisig_ci/ci_override.py b/multisig_ci/ci_override.py index e83696f..6b7ddcd 100644 --- a/multisig_ci/ci_override.py +++ b/multisig_ci/ci_override.py @@ -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 @@ -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) diff --git a/pyproject.toml b/pyproject.toml index c4c0280..55e8c0c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "multisig_ci" -version = "0.8.20" +version = "0.8.21" description = "Gnosis safe ci scripts." authors = ["kx9x "] license = "AGPLv3"