Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit f37ad33

Browse files
committed
don't ignore teal
1 parent 042f5a4 commit f37ad33

File tree

3 files changed

+77
-1
lines changed

3 files changed

+77
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
abi.json
22
*spec.json
3-
*.teal
43
node_modules/
54
session_4/web/src/**/*.js
65
*.js.map
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#pragma version 8
2+
intcblock 0 1
3+
bytecblock 0x636f756e746572 0x6c6173745f63616c6c65725f6e616d65 0x6c6173745f63616c6c65725f61646472657373
4+
txna ApplicationArgs 0
5+
pushbytes 0x20df3a54 // "create(string)void"
6+
==
7+
bnz main_l4
8+
txna ApplicationArgs 0
9+
pushbytes 0x17b66382 // "increment(string)void"
10+
==
11+
bnz main_l3
12+
err
13+
main_l3:
14+
txn OnCompletion
15+
intc_0 // NoOp
16+
==
17+
txn ApplicationID
18+
intc_0 // 0
19+
!=
20+
&&
21+
assert
22+
txna ApplicationArgs 1
23+
callsub increment_1
24+
intc_1 // 1
25+
return
26+
main_l4:
27+
txn OnCompletion
28+
intc_0 // NoOp
29+
==
30+
txn ApplicationID
31+
intc_0 // 0
32+
==
33+
&&
34+
assert
35+
txna ApplicationArgs 1
36+
callsub create_0
37+
intc_1 // 1
38+
return
39+
40+
// create
41+
create_0:
42+
proto 1 0
43+
bytec_0 // "counter"
44+
intc_0 // 0
45+
app_global_put
46+
bytec_2 // "last_caller_address"
47+
global CreatorAddress
48+
app_global_put
49+
bytec_1 // "last_caller_name"
50+
pushbytes 0x // ""
51+
app_global_put
52+
bytec_1 // "last_caller_name"
53+
frame_dig -1
54+
extract 2 0
55+
app_global_put
56+
retsub
57+
58+
// increment
59+
increment_1:
60+
proto 1 0
61+
bytec_0 // "counter"
62+
bytec_0 // "counter"
63+
app_global_get
64+
intc_1 // 1
65+
+
66+
app_global_put
67+
bytec_2 // "last_caller_address"
68+
txn Sender
69+
app_global_put
70+
bytec_1 // "last_caller_name"
71+
frame_dig -1
72+
extract 2 0
73+
app_global_put
74+
retsub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#pragma version 8
2+
pushint 0 // 0
3+
return

0 commit comments

Comments
 (0)