From 745b277f9b15b98697ae38e06f2321e84d154f63 Mon Sep 17 00:00:00 2001 From: quasisamurai Date: Mon, 24 Jun 2024 13:37:22 -0300 Subject: [PATCH] rm rudiment struct init --- internal/submit/tx_sender.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/submit/tx_sender.go b/internal/submit/tx_sender.go index 8032bb7..3504619 100644 --- a/internal/submit/tx_sender.go +++ b/internal/submit/tx_sender.go @@ -235,11 +235,7 @@ func (txs *TxSender) queryDynamicPrice(ctx context.Context) (cosmossdk_io_math.L if err != nil { return cosmossdk_io_math.LegacyZeroDec(), fmt.Errorf("error marshalling query gas prices request for denom=%s: %w", txs.denom, err) } - simQuery := abci.RequestQuery{ - Path: getPricesQueryPath, - Data: req, - } - res, err := txs.rpcClient.ABCIQueryWithOptions(ctx, simQuery.Path, simQuery.Data, rpcclient.DefaultABCIQueryOptions) + res, err := txs.rpcClient.ABCIQueryWithOptions(ctx, getPricesQueryPath, req, rpcclient.DefaultABCIQueryOptions) if err != nil { return cosmossdk_io_math.LegacyZeroDec(), fmt.Errorf("error making abci query: %w", err) }