Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
Signed-off-by: moul <[email protected]>
  • Loading branch information
moul committed Nov 14, 2024
1 parent f6e3a5d commit c403e23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 0 additions & 8 deletions gno.land/cmd/gnoland/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ type startCfg struct {
genesisRemote string // TODO: remove as part of https://github.com/gnolang/gno/issues/1952
genesisFile string
chainID string
chainDomain string
dataDir string
lazyInit bool

Expand Down Expand Up @@ -123,13 +122,6 @@ func (c *startCfg) RegisterFlags(fs *flag.FlagSet) {
"the ID of the chain",
)

fs.StringVar(
&c.chainDomain,
"chaindomain",
"gno.land",
"the domain of the chain for packages",
)

fs.StringVar(
&c.gnoRootDir,
"gnoroot-dir",
Expand Down
7 changes: 6 additions & 1 deletion gno.land/cmd/gnoland/testdata/genesis_params.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

gnoland start

# official params (right now they makes sense to be tested in a txtar to validate that a default "gnoland" initialization will have default values)
gnokey query params/vm/gno.land/r/sys/params.vm.chain_domain.string
stdout 'data: "gno.land"$'

# test params
gnokey query params/vm/gno.land/r/sys/params.test.foo.string
stdout 'data: "bar"$'
gnokey query params/vm/gno.land/r/sys/params.test.foo.int64
Expand All @@ -10,5 +15,5 @@ gnokey query params/vm/gno.land/r/sys/params.test.foo.uint64
stdout 'data: "42"'
gnokey query params/vm/gno.land/r/sys/params.test.foo.bool
stdout 'data: true'
# XXX: bytes
# XXX: consider adding a test with bytes

0 comments on commit c403e23

Please sign in to comment.