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 6fcbd1c commit c874441
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion contribs/gnodev/pkg/dev/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,12 @@ func newNodeConfig(tmc *tmcfg.Config, chainid, chaindomain string, appstate gnol
// Create Mocked Identity
pv := gnoland.NewMockedPrivValidator()
genesis := gnoland.NewDefaultGenesisConfig(chainid)

// custom chain domain
var domainParam gnoland.Param
_ = domainParam.Parse("gno.land/r/sys/params.vm.chain_domain.string=" + chaindomain)
appstate.Params = append(appstate.Params, domainParam)

genesis.AppState = appstate

// Add self as validator
Expand All @@ -581,6 +587,5 @@ func newNodeConfig(tmc *tmcfg.Config, chainid, chaindomain string, appstate gnol
Genesis: genesis,
VMOutput: os.Stdout,
}
cfg.InitChainerConfig.ChainDomain = chaindomain
return cfg
}
2 changes: 1 addition & 1 deletion gno.land/genesis/genesis_params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## gnovm
["gno.land/r/sys/params.vm"]
# TODO: chain_domain.string = "gno.land"
chain_domain.string = "gno.land"
# TODO: max_gas.int64 = 100_000_000
# TODO: chain_tz.string = "UTC"
# TODO: default_storage_allowance.string = ""
Expand Down
1 change: 1 addition & 0 deletions gno.land/pkg/gnoland/node_inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func NewDefaultGenesisConfig(chainid string) *bft.GenesisDoc {
AppState: &GnoGenesisState{
Balances: []Balance{},
Txs: []TxWithMetadata{},
Params: []Param{},
},
}
}
Expand Down
1 change: 0 additions & 1 deletion gno.land/pkg/integration/testing_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func TestingMinimalNodeConfig(t TestingTS, gnoroot string) *gnoland.InMemoryNode
InitChainerConfig: gnoland.InitChainerConfig{
GenesisTxResultHandler: gnoland.PanicOnFailingTxResultHandler,
CacheStdlibLoad: true,
ChainDomain: "gno.land",
},
}
}
Expand Down

0 comments on commit c874441

Please sign in to comment.