/r/nym-moultest123/demo/args/v0
Directory · 4 Files
gno.land/r/nym-moultest123/demo/args
Step 2 of the r/moul/demo walkthrough: passing arguments to an exported
function.
1func Hello(name string) string { return "Hello " + name + "!" }
Arguments arrive from the transaction as strings and are decoded into the declared parameter types. There is no state here: the realm reads its input and returns, so two identical calls return the same thing.
1gnokey maketx call -pkgpath gno.land/r/nym-moultest123/demo/args \
2 -func Hello -args People -gas-fee 20000ugnot -gas-wanted 2000000 -broadcast moul
Previous: hello. Next: data adds state that survives
the call.
Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.
⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.