Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 259 Bytes

IsContract.md

File metadata and controls

3 lines (2 loc) · 259 Bytes

IsContract

This checks if an address is a contract or an EOA by looking at the size of the code. EOAs do not have code, contracts have code. The extcodesize() opcode returns the size of this code which is 0 for EOAs and > 0 for contracts.