From c70c9c609c62e61b934eb0af8e46b054503f65bd Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Wed, 10 Apr 2024 10:14:47 +0200 Subject: [PATCH] panic if query router is nil --- modules/apps/27-interchain-accounts/host/keeper/msg_server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/apps/27-interchain-accounts/host/keeper/msg_server.go b/modules/apps/27-interchain-accounts/host/keeper/msg_server.go index d078fe8f7c3..711052f64bb 100644 --- a/modules/apps/27-interchain-accounts/host/keeper/msg_server.go +++ b/modules/apps/27-interchain-accounts/host/keeper/msg_server.go @@ -24,6 +24,9 @@ type msgServer struct { // NewMsgServerImpl returns an implementation of the ICS27 host MsgServer interface // for the provided Keeper. func NewMsgServerImpl(keeper *Keeper) types.MsgServer { + if keeper.queryRouter == nil { + panic("query router must not be nil") + } return &msgServer{Keeper: keeper} }