There is an answer from 2017 here saying that it's not possible but it's been 3 years since then so hopefully there is progress.

My Vyper contract looks something like this:

import ERC20 as ERC20
import SomeOtherContract as SomeOtherContract

How can I verify a contract that has imported other contracts on etherscan?

  • You replace those imports with their actual contents. – goodvibration Oct 14 '20 at 17:04
  • The answer in the link i posted said that's not possible because the solidity compiler appends a hash of the contract's metadata (which contains filename info etc.) to the end of bytecode - assuming the vyper compiler does something similar. But ill try it anyway.. – Dylan Kerler Oct 14 '20 at 17:08
  • Etherscan ignores the metadata. – goodvibration Oct 14 '20 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.