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 c403e23 commit a1c2ddb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions gno.land/cmd/gnoland/testdata/genesis_params.txtar
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
# test for https://github.com/gnolang/gno/pull/3003
# Test for #3003, #2911.

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)
# Query and validate official parameters.
# These parameters should ideally be tested in a txtar format to ensure that a
# default initialization of "gnoland" provides the expected default values.

# Verify the default chain domain parameter for Gno.land
gnokey query params/vm/gno.land/r/sys/params.vm.chain_domain.string
stdout 'data: "gno.land"$'

# test params
# Test custom parameters to confirm they return the expected values and types.

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
stdout 'data: "-1337"'

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: consider adding a test with bytes

# TODO: Consider adding a test case for a byte array parameter

0 comments on commit a1c2ddb

Please sign in to comment.