clarity-lang / overview

Overview of the Clarity language for smart contracts
165 stars 31 forks source link

Update counter.clar to use `define-read-only` #1

Closed artob closed 1 year ago

artob commented 4 years ago

Implementing Clarity for SmartWeave, I was surprised that the get-counter function in the counter.clar example used define-public instead of define-read-only. Perhaps an oversight during the evolution of the language?