Skip to content

Commit 4d2d1fd

Browse files
authored
refactor(contracts): add proxy kwargs to ContractContainer.at (#2527)
1 parent 29f39f0 commit 4d2d1fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ape/contracts/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
from ethpm_types.contract_type import ABI_W_SELECTOR_T, ContractType
4949
from pandas import DataFrame
5050

51+
from ape.api.networks import ProxyInfoAPI
5152
from ape.api.transactions import ReceiptAPI, TransactionAPI
5253
from ape.types.address import AddressType
5354

@@ -1483,6 +1484,8 @@ def at(
14831484
address: "AddressType",
14841485
txn_hash: Optional[Union[str, HexBytes]] = None,
14851486
fetch_from_explorer: bool = True,
1487+
proxy_info: Optional["ProxyInfoAPI"] = None,
1488+
detect_proxy: bool = True,
14861489
) -> ContractInstance:
14871490
"""
14881491
Get a contract at the given address.
@@ -1507,9 +1510,11 @@ def at(
15071510
"""
15081511
return self.chain_manager.contracts.instance_at(
15091512
address,
1510-
self.contract_type,
1513+
contract_type=self.contract_type,
15111514
txn_hash=txn_hash,
15121515
fetch_from_explorer=fetch_from_explorer,
1516+
proxy_info=proxy_info,
1517+
detect_proxy=detect_proxy,
15131518
)
15141519

15151520
@cached_property

0 commit comments

Comments
 (0)