Skip to content

Commit

Permalink
Bypass unsupported autosign API for TestAccount.
Browse files Browse the repository at this point in the history
  • Loading branch information
KPrasch committed Sep 24, 2024
1 parent 26cb126 commit 8cd0f3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deployment/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 8cd0f3f

Please sign in to comment.