Refactored the SonrApp struct by reorganizing and grouping the keepers and other fields.

This commit is contained in:
Prad Nukala authored and Prad Nukala (aider) committed 2024-07-07 17:45:08 -04:00
1 parent f6b04e1599
commit 6c1c3d5f8f
8 files changed
+50 -433

No files matched your search

+2 -3
View File
@@ -22,7 +22,6 @@ import (
"github.com/onsonr/hway/app"
"github.com/onsonr/hway/app/params"
"github.com/onsonr/hway/internal/env"
// NewRootCmd creates a new root command for chain app. It is called once in the
// main function.
)
@@ -100,8 +99,8 @@ func NewRootCmd() *cobra.Command {
}
// Set the context chain ID and validator address
env.SetLocalChainID(initClientCtx.ChainID)
env.SetLocalValidatorAddress(initClientCtx.FromAddress.String())
app.SetLocalChainID(initClientCtx.ChainID)
app.SetLocalValidatorAddress(initClientCtx.FromAddress.String())
customAppTemplate, customAppConfig := initAppConfig()
customCMTConfig := initCometBFTConfig()