Transaction
51ED1EDE0263F1…70DEFCD23DC6
Block 26,342 · index 0 · indexed
Summary
- Hash
- 51ED1EDE0263F1A4704BBA0E5EEB8E17D09CF37D5AECB888B3DE70DEFCD23DC6
- Block
- 26,342
- Size
- 1629 bytes
- Gas used
- 6,577,213 / 7,892,715
- Fee
- 1000000ugnot
- Memo
- gnopublish
- Status
- success
Messages
Arguments · 9
- #1render
- #2README.md
- #3# `gno.land/r/moul/demo/render/v0` _TODO: describe this package._ <!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) --> --- Part of **[moul/gno-contracts](https://github.com/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](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md). <!-- END GNOCONTRACTS FOOTER -->
- #4contract.gno
- #5package render import "strings" func Hello() string { return "Hello World!" } func greetings(name string) string { // private return "Welcome, " + name + "!" } func Render(path string) string { switch { case path == "hello": return Hello() case strings.HasPrefix(path, "greetings/"): name := strings.Split(path, "/")[1] // take string after slash name = strings.Title(name) // capitalize first letter return greetings(name) case path == "": out := "- [hello](/r/moul_basics_004:hello)\n" out += "- [greetings/Manfred](/r/moul_basics_004:greetings/Manfred)\n" return out } return "404" }
- #6gnomod.toml
- #7module = "gno.land/r/moul/demo/render/v0" gno = "0.9"
- #8/gno.MemPackageType
- #9 MPUserProd
Result log
msg:0,success:true,log:,events:[]