Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

z3_many_filetest.gno

0.60 Kb · 22 lines
 1// PKGPATH: gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/z3
 2
 3// Moves past one bucket still read back right, and an author is capped.
 4package z3
 5
 6import (
 7	"strconv"
 8
 9	"gno.land/r/g1ftppd2jpfx0p8cy08th4u9whwvqcpychhlad28/moves/v4"
10)
11
12func main(cur realm) {
13	for i := 0; i < moves.MaxPerAuthor; i++ {
14		moves.Publish(cross(cur), "M"+strconv.Itoa(i)+"/"+strconv.Itoa(40+i)+"/P24")
15	}
16	println(moves.Count(), moves.Recipe(1), moves.Recipe(16), moves.Recipe(17), moves.Recipe(32))
17	println(moves.Render("move/33"))
18	moves.Publish(cross(cur), "One More/40/P24")
19}
20
21// Error:
22// an author can publish 32 moves