mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-18 11:59:24 +08:00
Update map example
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user