Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 667 Bytes

tx.origin Check.md

File metadata and controls

22 lines (19 loc) · 667 Bytes

Recall that Ethereum has two types of accounts: Externally Owned Account (EOA) and Contract Account.

Transactions can originate only from EOAs.

In situations where contracts would like to determine if the msg.sender was a contract or not, checking if msg.sender is equal to tx.origin is an effective check.


Slide Screenshot

145.jpg


Slide Text

  • Ethereum Accounts
    • EOA vs Contract
  • Tx Origin -> Only EOA
  • msg.sender == tx.origin
  • Sender -> Contract or Not

References


Tags