Skip to content

Commit

Permalink
Wasm message handler #382
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizualni authored Aug 11, 2022
1 parent 7b2d5e9 commit bca767c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import (
valsetmoduletypes "github.com/palomachain/paloma/x/valset/types"

"github.com/CosmWasm/wasmd/x/wasm"
wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
// this line is used by starport scaffolding # stargate/app/moduleImport
)

Expand Down Expand Up @@ -430,6 +431,12 @@ func New(
wasmDir,
wasmConfig,
"iterator,staking,stargate,paloma",
wasmkeeper.WithMessageHandlerDecorator(func(old wasmkeeper.Messenger) wasmkeeper.Messenger {
return wasmkeeper.NewMessageHandlerChain(
old,
app.EvmKeeper.WasmMessengerHandler(),
)
}),
)
// register wasm gov proposal types
// enabledProposals := GetEnabledProposals()
Expand Down

0 comments on commit bca767c

Please sign in to comment.