Update map example

This commit is contained in:
Terje Norderhaug
2020-03-11 22:47:35 -07:00
parent 4f4964a940
commit b72645c4cc

View File

@@ -95,7 +95,7 @@ cargo run --bin blockstack-cli generate-sk --testnet
We will interact with the following simple contract `kv-store`. In our examples, we will assume this contract is saved to `./kv-store.clar`:
```scheme
(define-map store (key (buff 32)) (value (buff 32)))
(define-map store ((key (buff 32))) ((value (buff 32))))
(define-public (get-value (key (buff 32)))
(match (map-get? store {key key})