Skip to content

Commit

Permalink
fix git leak lint error
Browse files Browse the repository at this point in the history
fix lint error regarding the ante utils import
  • Loading branch information
TimmyExogenous committed Sep 3, 2024
1 parent b9ba7ac commit 13ac17d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/ante/cosmos/txsize_gas.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cosmos

import (
"github.com/ExocoreNetwork/exocore/app/ante/utils"
anteutils "github.com/ExocoreNetwork/exocore/app/ante/utils"
"github.com/cosmos/cosmos-sdk/codec/legacy"
"github.com/cosmos/cosmos-sdk/crypto/keys/multisig"
Expand Down Expand Up @@ -40,8 +39,8 @@ func (cgts ConsumeTxSizeGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, sim

// Skip gas consumption if tx is an OracleCreatePriceTx
if anteutils.IsOracleCreatePriceTx(tx) {
if len(ctx.TxBytes()) > utils.TxSizeLimit {
return ctx, sdkerrors.ErrTxTooLarge.Wrapf("oracle create-price tx has exceeds size limit, limit:%d, got:%d", utils.TxSizeLimit, len(ctx.TxBytes()))
if len(ctx.TxBytes()) > anteutils.TxSizeLimit {
return ctx, sdkerrors.ErrTxTooLarge.Wrapf("oracle create-price tx has exceeds size limit, limit:%d, got:%d", anteutils.TxSizeLimit, len(ctx.TxBytes()))
}
return next(ctx, tx, simulate)
}
Expand Down Expand Up @@ -71,7 +70,7 @@ func (cgts ConsumeTxSizeGasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, sim

// use placeholder simSecp256k1Pubkey if sig is nil
if acc == nil || acc.GetPubKey() == nil {
pubkey = simSecp256k1Pubkey
pubkey = simSecp256k1Pubkey //gitleaks:allow
} else {
pubkey = acc.GetPubKey()
}
Expand Down

0 comments on commit 13ac17d

Please sign in to comment.