From 7c5bc5660c7433642e886162ced28c52989ff568 Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Thu, 9 Nov 2023 12:05:29 -0500 Subject: [PATCH] Fix CLI --- x/txfees/client/cli/query.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/x/txfees/client/cli/query.go b/x/txfees/client/cli/query.go index 92e293e16e4..cb320d818f0 100644 --- a/x/txfees/client/cli/query.go +++ b/x/txfees/client/cli/query.go @@ -15,9 +15,10 @@ func GetQueryCmd() *cobra.Command { GetCmdFeeTokens(), GetCmdDenomPoolID(), GetCmdBaseDenom(), - GetCmdQueryBaseFee(), ) + osmocli.AddQueryCmd(cmd, types.NewQueryClient, GetCmdQueryBaseFee) + return cmd } @@ -54,13 +55,12 @@ func GetCmdBaseDenom() *cobra.Command { ) } -func GetCmdQueryBaseFee() *cobra.Command { - return osmocli.SimpleQueryCmd[*types.QueryEipBaseFeeRequest]( - "base-fee", - "Query the eip base fee", - `{{.Short}}{{.ExampleHeader}} -{{.CommandPrefix}} base-fee -`, - types.ModuleName, types.NewQueryClient, - ) +func GetCmdQueryBaseFee() (*osmocli.QueryDescriptor, *types.QueryEipBaseFeeRequest) { + return &osmocli.QueryDescriptor{ + Use: "base-fee", + Short: "Query the eip base fee.", + Long: `{{.Short}}{{.ExampleHeader}} +{{.CommandPrefix}} base-fee`, + QueryFnName: "GetEipBaseFee", + }, &types.QueryEipBaseFeeRequest{} }