Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 840 Bytes

File metadata and controls

18 lines (17 loc) · 840 Bytes

Checking if a call was made from an Externally Owned Account (EOA) or a contract account is typically done using extcodesize check which may be circumvented by a contract during construction when it does not have source code available. Checking if tx.origin == msg.sender is another option. Both have implications that need to be considered. (see here)


Slide Screenshot

031.jpg


Slide Text

  • Contract vs EOA
  • excodesize > 0
  • msg.sender == tx.origin
  • Pros & Cons -> Applications
  • Risk Awareness -> Implications

References


Tags