Clarity theorytheory 0/50 · 0%
Security · hard

46. Security: Access Control

Properly protecting sensitive functions.

Using `tx-sender` vs `contract-caller` is a crucial distinction. `contract-caller` is the immediate caller, while `tx-sender` is the original transaction signer.

Check your understanding

  1. 1. Which variable represents the immediate caller of a function?