Skip to content

Commit a5092c1

Browse files
committed
add owner for sudt
1 parent 3f41553 commit a5092c1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

is-owner-mode

25 KB
Binary file not shown.

sudt

26.3 KB
Binary file not shown.

tests/examples/sudt.cell

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ import "cell"
55
// main is the entry point of every cell script
66
function main() {
77
tx.scriptVerify()
8+
9+
if(tx.isOwnerMode()) {
10+
return 0
11+
}
12+
13+
814
var ins = tx.inputs()
915
var outs = tx.outputs()
1016

0 commit comments

Comments
 (0)