Playground
gnomod.toml
module = "gno.land/r/g1nqljuvmcdehspt3dlz9yt2ap92gmnrxj4zcy2v/tally" gno = "0.9" [addpkg] creator = "g1nqljuvmcdehspt3dlz9yt2ap92gmnrxj4zcy2v" height = 44630 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\nCurrent count: " + strconv.Itoa(count) + "\n"
}