Skip to content

Commit

Permalink
load batchkeeper in bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
codehans committed Mar 27, 2024
1 parent ae7461f commit f767125
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ func New(
app.BankKeeper,
app.OracleKeeper,
*app.DenomKeeper,
app.BatchKeeper,
*app.IBCKeeper,
app.CwICAKeeper,
app.ICAControllerKeeper,
Expand Down
2 changes: 2 additions & 0 deletions wasmbinding/message_plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
func CustomMessageDecorator(
bank bankkeeper.Keeper,
denom denomkeeper.Keeper,
batch batchkeeper.Keeper,
cwica cwicakeeper.Keeper,
ica icacontrollerkeeper.Keeper,
) func(wasmkeeper.Messenger) wasmkeeper.Messenger {
Expand All @@ -34,6 +35,7 @@ func CustomMessageDecorator(
denom: denom,
cwica: cwica,
ica: ica,
batch: batch,
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion wasmbinding/wasm.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package wasmbinding

import (
batchkeeper "github.com/Team-Kujira/core/x/batch/keeper"
denomkeeper "github.com/Team-Kujira/core/x/denom/keeper"
oraclekeeper "github.com/Team-Kujira/core/x/oracle/keeper"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
Expand All @@ -17,6 +18,7 @@ func RegisterCustomPlugins(
bank bankkeeper.Keeper,
oracle oraclekeeper.Keeper,
denom denomkeeper.Keeper,
batch batchkeeper.Keeper,
ibc ibckeeper.Keeper,
cwica cwicakeeper.Keeper,
ica icacontrollerkeeper.Keeper,
Expand All @@ -29,7 +31,7 @@ func RegisterCustomPlugins(
})

messengerDecoratorOpt := wasmkeeper.WithMessageHandlerDecorator(
CustomMessageDecorator(bank, denom, cwica, ica),
CustomMessageDecorator(bank, denom, batch, cwica, ica),
)

return []wasmkeeper.Option{
Expand Down

0 comments on commit f767125

Please sign in to comment.