From 8cd0f3fd3e9c68bf67791898ab0dac4efaedb1bf Mon Sep 17 00:00:00 2001 From: KPrasch Date: Tue, 24 Sep 2024 19:13:49 +0200 Subject: [PATCH] Bypass unsupported autosign API for TestAccount. --- deployment/params.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deployment/params.py b/deployment/params.py index 0c1b9a21..ad7f425d 100644 --- a/deployment/params.py +++ b/deployment/params.py @@ -9,6 +9,7 @@ from ape.cli.choices import select_account from ape.contracts.base import ContractContainer, ContractInstance, ContractTransactionHandler from ape.utils import EMPTY_BYTES32, ZERO_ADDRESS +from ape_test import TestAccount from eth_typing import ChecksumAddress from eth_utils import to_checksum_address from ethpm_types import MethodABI @@ -488,7 +489,8 @@ def __init__(self, account: typing.Optional[AccountAPI] = None, autosign: bool = if autosign: print("WARNING: Autosign is enabled. Transactions will be signed automatically.") self._autosign = autosign - self._account.set_autosign(autosign) + if not isinstance(self._account, TestAccount): + self._account.set_autosign(autosign) def get_account(self) -> AccountAPI: """Returns the transactor account."""