Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.03 KB

5-todo-comment.md

File metadata and controls

39 lines (24 loc) · 1.03 KB

TODO comment

Description

As a best practice, it is recommended to remove TODO comments from the code.

Exploit Scenario

(define-public (mint (recipient principal))
	;; TODO: implement this function
	(ok 1)
)

;; ToDo: Implement the rest of the contract

The vulnerable code example can be found here.

Remediation

Remove unnecessary comments from the code before deploying it.

(define-public (mint (recipient principal))
	;; corresponding implementation
)

The remediated code example can be found here.