ApeWorX / ape-etherscan

Etherscan explorer plugin using EVM-based networks for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
24 stars 26 forks source link

No contract type found when using mainnet-fork #19

Closed r4VP4 closed 2 years ago

r4VP4 commented 2 years ago

Environment information

$ ape --version
0.2.2

$ ape plugins list
  etherscan    0.2.0
  hardhat      0.2.0
  solidity     0.2.2
  alchemy      0.2.0

What went wrong?

I am trying to initiate an erc20 contract like this: contract = Contract('0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2') But i get a warning: WARNING: No contract type found for 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 this problem occurs only if i am using a mainnet-fork. when connecting to mainnet everything's fine

fubuloubu commented 2 years ago

@r4VP4 checkout #20, it should solve your issues

r4VP4 commented 2 years ago

it's working. thank you!!

fubuloubu commented 2 years ago

released in https://github.com/ApeWorX/ape-etherscan/releases/tag/v0.2.1