Skip to content

failed to get contract type when using project.MyContract.at() #2715

@antazoey

Description

@antazoey

Have you ensured that all of these are up to date?

  • Ape
  • Ape plugins

What version of Ape are you on?

No response

What command(s) is the bug in?

No response

Operating System

Windows

Ape Configuration

No response

Description

In [1]: settler = project.TplusSettler.at("0x1E0.....")

In [2]: settler.owner()
ERROR: (ContractNotFoundError) Failed to get contract type for address '0x1E010D9BAEf8D1405EdcE7B9E95cc4CbeCe29fdC'. Contract may need verification.
2025-10-22 16:59:41,536 - ape - ERROR - (ContractNotFoundError) Failed to get contract type for address '0x1E010D9BAEf8D1405EdcE7B9E95cc4CbeCe29fdC'. Contract may need verification.

In [3]:

Reproduction code

In [1]: settler = project.TplusSettler.at("0x1E0.....")

In [2]: settler.owner()
ERROR: (ContractNotFoundError) Failed to get contract type for address '0x1E010D9BAEf8D1405EdcE7B9E95cc4CbeCe29fdC'. Contract may need verification.
2025-10-22 16:59:41,536 - ape - ERROR - (ContractNotFoundError) Failed to get contract type for address '0x1E010D9BAEf8D1405EdcE7B9E95cc4CbeCe29fdC'. Contract may need verification.

In [3]:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions