Skip to content

Commit

Permalink
pass in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Sep 8, 2024
1 parent 3e5029e commit 10440c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ func (app *SimApp) setAnteHandler(txConfig client.TxConfig) {
anteHandler, err := NewAnteHandler(
HandlerOptions{
ante.HandlerOptions{
Environment: runtime.NewEnvironment(nil, app.Logger(), runtime.EnvWithMsgRouterService(app.MsgServiceRouter()), runtime.EnvWithQueryRouterService(app.GRPCQueryRouter())), // nil is set as the kvstoreservice to avoid module access
AccountKeeper: app.AuthKeeper,
BankKeeper: app.BankKeeper,
SignModeHandler: txConfig.SignModeHandler(),
Expand Down

0 comments on commit 10440c8

Please sign in to comment.