Private functions are only callable from within the same smart contract file.
clarity (define-private (calculate-fee (amount uint)) (/ (* amount u5) u100))
100 XP to Apprentice
Internal helper logic.
AI translates the explanation and quiz text while preserving code and answer scoring.
Private functions are only callable from within the same smart contract file.
clarity (define-private (calculate-fee (amount uint)) (/ (* amount u5) u100))
1. Can a private function be called directly via an external transaction?
2. Can private functions return raw values instead of responses?