Skip to content

Ape attempts to fetch type from explorer for precompile-type "contracts" #2705

@fubuloubu

Description

@fubuloubu

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

  • Ape
  • Ape plugins

What version of Ape are you on?

0.8.39

What command(s) is the bug in?

project.ContractType.at("<addr").method(*args)

Operating System

Linux

Ape Configuration

pyproject.toml:

[tool.ape.node.hyperliquid.mainnet]
uri = "https://rpc.hyperliquid.xyz/evm"
[tool.ape.node.hyperliquid.testnet]
uri = "https://rpc.hyperliquid-testnet.xyz/evm"

Description

I have a JSON interface in my project for a precompile that is present on a network I am trying to work with (ape-hyperliquid). I am loading the proper address for that custom pre-compile and trying to call it using the interface, however Ape tries to fetch the contract type from an explorer, which does not exist.

I am thinking this is related to it being a precompile, which is an address that has no code but still supports making calls. An example from the docs:

https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/interacting-with-hypercore

cast call 0x0000000000000000000000000000000000000807 0x0000000000000000000000000000000000000000000000000000000000000003 --rpc-url https://rpc.hyperliquid-testnet.xyz/evm

Reproduction code

No response

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