Skip to content

Commit 1a9ceea

Browse files
Merge pull request #255 from stacks-network/friedger-patch-1
fix: clarify use of env simnet
2 parents ee6f886 + dc050c9 commit 1a9ceea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ npx rv <path-to-clarinet-project> <contract-name> <type>
6868
Here's an example of a test that checks reversing a list twice returns the original:
6969

7070
```clarity
71+
;;[#env(simnet)]
7172
(define-public (test-reverse-list (seq (list 127 uint)))
7273
(begin
7374
(asserts!
@@ -91,6 +92,7 @@ rv example reverse test
9192
Here's a Clarity invariant to detect a bug in the example counter contract:
9293

9394
```clarity
95+
;;[#env(simnet)]
9496
(define-read-only (invariant-counter-gt-zero)
9597
(let
9698
((increment-num-calls (default-to u0 (get called (map-get? context "increment"))))

0 commit comments

Comments
 (0)