From f720ef0d43aedb70ddadc7a2171508922a3866d0 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 29 Oct 2025 22:51:15 +0100 Subject: [PATCH] Update app.go --- app/app.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/app.go b/app/app.go index a5f5ff78d..c72c0964d 100644 --- a/app/app.go +++ b/app/app.go @@ -239,6 +239,16 @@ func NewWasmApp( wasmOpts []wasmkeeper.Option, baseAppOptions ...func(*baseapp.BaseApp), ) *WasmApp { + // Validate critical input parameters + if logger == nil { + panic("logger is required for WasmApp") + } + if db == nil { + panic("database is required for WasmApp") + } + if appOpts == nil { + panic("app options are required for WasmApp") + } interfaceRegistry, err := types.NewInterfaceRegistryWithOptions(types.InterfaceRegistryOptions{ ProtoFiles: proto.HybridResolver, SigningOptions: signing.Options{