Playground
gnomod.toml
module = "gno.land/r/g1uhp2ct66xap97aqwdlutwvu39y5370gd62xpcs/tally" gno = "0.9" [addpkg] creator = "g1uhp2ct66xap97aqwdlutwvu39y5370gd62xpcs" height = 39033 max_deposit = "10000000ugnot"
tally.gno
package tally
import "strconv"
var count int
// Bump adds one to the tally. Anyone may call it.
func Bump(cur realm) {
count++
}
// Count returns the current tally.
func Count() int {
return count
}
func Render(_ string) string {
return "# Tally board\n\nCount: " + strconv.Itoa(count) + "\n"
}