Skip to content

getCode returns '0x' even though the contract code is verified #1899

Answered by kirpop
kirpop asked this question in Q&A
Discussion options

You must be logged in to vote

I believe I figured it out, sorry for the bother 😅

For those who might come from Google:

This contract (and other cases like this one) were self-destructed, which removed the contract code from the blockchain. The reason EtherScan/BscScan have the full contract is because they scanned it before it self-destructed.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@abooo96
Comment options

@ricmoo
Comment options

@abooo96
Comment options

Answer selected by kirpop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants