Skip to content

Commit

Permalink
fix review comments & typo
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Jun 24, 2024
1 parent f46f12f commit 28b3fd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/submit/tx_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
const (
accountQueryPath = "/cosmos.auth.v1beta1.Query/Account"
simulateQueryPath = "/cosmos.tx.v1beta1.Service/Simulate"
getPricesQueryPath = "/feemarket.feemarket.v1.Quuery/GasPrice"
getPricesQueryPath = "/feemarket.feemarket.v1.Query/GasPrice"
IncorrectAccountSequenceCode = 32
)

Expand Down Expand Up @@ -265,9 +265,6 @@ func (txs *TxSender) multiplyGas(gas cosmossdk_io_math.LegacyDec) (string, error
}

multipliedGas := txs.gasPriceMultiplier * floatGas
if err != nil {
return "", err
}
if multipliedGas > txs.maxGasPrice {
multipliedGas = txs.maxGasPrice
}
Expand All @@ -284,6 +281,7 @@ func (txs *TxSender) multiplyGas(gas cosmossdk_io_math.LegacyDec) (string, error
func (txs *TxSender) getGasPrice(ctx context.Context) (string, error) {
gasPrice, err := txs.queryDynamicPrice(ctx)
if err != nil {
txs.logger.Error("error querying feemarket price", zap.Error(err))
return txs.gasPrices, nil
}

Expand Down

0 comments on commit 28b3fd7

Please sign in to comment.