Skip to content

Commit

Permalink
fix: unit test in arkeo module
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Jul 31, 2024
1 parent ae77a89 commit bcb7df8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ import (
"github.com/spf13/cast"

// "github.com/ignite/cli/ignite/pkg/cosmoscmd"
"github.com/ignite/cli/ignite/pkg/openapiconsole"

arkeomodule "github.com/arkeonetwork/arkeo/x/arkeo"
arkeomodulekeeper "github.com/arkeonetwork/arkeo/x/arkeo/keeper"
Expand All @@ -146,7 +145,7 @@ const (

const (
NodeDir = ".arkeo"
Bech32Prefix = "arkeo"
Bech32Prefix = AccountAddressPrefix
)

var (
Expand Down Expand Up @@ -608,6 +607,8 @@ func NewArkeoApp(
app.BankKeeper,
app.AccountKeeper,
*app.StakingKeeper,
govModuleAddr,
logger,
)
arkeoModule := arkeomodule.NewAppModule(appCodec, app.ArkeoKeeper, app.AccountKeeper, app.BankKeeper, *app.StakingKeeper)

Expand Down Expand Up @@ -936,7 +937,7 @@ func (app *ArkeoApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIC

// register app's OpenAPI routes.
apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs)))
apiSvr.Router.HandleFunc("/", openapiconsole.Handler(AppName, "/static/openapi.yml"))
// apiSvr.Router.HandleFunc("/", openapiconsole.Handler(AppName, "/static/openapi.yml"))
}

// RegisterTxService implements the Application.RegisterTxService method.
Expand Down
6 changes: 4 additions & 2 deletions app/app_regtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/grpc/cmtservice"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.com/cosmos/cosmos-sdk/server/api"
"github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -83,6 +84,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/staking"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/cosmos/ibc-go/modules/capability"
_ "github.com/cosmos/ibc-go/modules/capability" // import for side-effects
capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
Expand All @@ -105,7 +107,7 @@ import (
"github.com/spf13/cast"

// "github.com/ignite/cli/ignite/pkg/cosmoscmd"
"github.com/ignite/cli/ignite/pkg/openapiconsole"
// "github.com/ignite/cli/ignite/pkg/openapiconsole"

arkeomodule "github.com/arkeonetwork/arkeo/x/arkeo"
arkeomodulekeeper "github.com/arkeonetwork/arkeo/x/arkeo/keeper"
Expand Down Expand Up @@ -859,7 +861,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig

// register app's OpenAPI routes.
apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs)))
apiSvr.Router.HandleFunc("/", openapiconsole.Handler(Name, "/static/openapi.yml"))
// apiSvr.Router.HandleFunc("/", openapiconsole.Handler(Name, "/static/openapi.yml"))
}

// RegisterTxService implements the Application.RegisterTxService method.
Expand Down

0 comments on commit bcb7df8

Please sign in to comment.