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.

Playground

contract.gno

package hello

func Hello() string {
	return "Hello World!"
}

func privateMethod() string {
	return "I'm private"
}

contract_test.gno

package hello

import "testing"

func Test(t *testing.T) {
	got := Hello()
	expected := "Hello World!"
	if got != expected {
		t.Fatalf("expected %q, got %q.", expected, got)
	}
}

gnomod.toml

module = "gno.land/r/nym-moultest123/demo/hello/v0"
gno = "0.9"

[addpkg]
  creator = "g1ml9grtwnpzqn3hre5ve5vjdlmv2srrmpmc0dsv"
  height = 186406
  max_deposit = "5000000ugnot"