From bca767cb71c2e7ffa4726dffbcb4e09c3318fcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Martini=C4=87?= Date: Thu, 11 Aug 2022 11:29:44 +0200 Subject: [PATCH] Wasm message handler #382 --- app/app.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/app.go b/app/app.go index 5da7cbd5..93b1def1 100644 --- a/app/app.go +++ b/app/app.go @@ -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 ) @@ -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()