Skip to content

Commit

Permalink
Update README with new defvars format
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Dec 31, 2023
1 parent 7e4597c commit d6a0910
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Learn more in the [[file:docs.org][documentation]]
* Examples
[[https://dasy-by-example.github.io][More examples at Dasy By Example]]
#+begin_src clojure
(defvars myMap (public (hash-map :address :uint256))
nums (public (dyn-arr :uint256 3))
owner (public :address))
(defvars :public
myMap (hash-map :address :uint256)
nums (dyn-arr :uint256 3)
owner :address)

(defn __init__ [] :external
(set self/owner msg/sender)
Expand Down

0 comments on commit d6a0910

Please # to comment.