From 64835636728148215dbcd2a3a06b9fc11ed3de1c Mon Sep 17 00:00:00 2001 From: kx9x Date: Wed, 19 Jun 2024 10:41:27 -0700 Subject: [PATCH] fix: live networks --- multisig_ci/ci_override.py | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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"