Quote-of-the-Day
SP2F500B8DTRK1EANJQ054BRAB8DDKN6QCMXGNFBTSource Code
;; Contract 17: Quote of the Day
(define-data-var quote (string-utf8 100) u"Be yourself")
(define-public (update-quote (new-quote (string-utf8 100)))
(ok (var-set quote new-quote))
)
(define-read-only (read-quote)
(ok (var-get quote))
)Functions (2)
| Function | Access | Args |
|---|---|---|
| update-quote | public | new-quote: (string-utf8 100 |
| read-quote | read-only |