Skip to content

Commit

Permalink
panic if query router is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Apr 10, 2024
1 parent b725666 commit c70c9c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/apps/27-interchain-accounts/host/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit c70c9c6

Please sign in to comment.