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"