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

Playground

contract.gno

package data

var total int

func init() {
	total = 1000
}

func Add(nb int) int {
	total += nb
	return total
}

gnomod.toml

module = "gno.land/r/moul/demo/data/v0"
gno = "0.9"

[addpkg]
  creator = "g1manfred47kzduec920z88wfr64ylksmdcedlf5"
  height = 26335
  max_deposit = "100000000ugnot"