Allow lps for fees
Some checks failed
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Failing after 47s
SDK Tests / sdk_tests_authority_auctions (pull_request) Failing after 48s
E2E Tests / test-e2e (pull_request) Failing after 50s
Unit Tests / test-unit (pull_request) Successful in 47s
Integration Tests / test-integration (pull_request) Failing after 44s
SDK Tests / sdk_tests (pull_request) Failing after 3m37s

This commit is contained in:
Prathamesh Musale 2025-05-12 19:26:36 +05:30
parent 35665ded10
commit 66118cc23d

View File

@ -25,9 +25,10 @@ func checkTxFeeWithValidatorMinGasPrices(ctx sdk.Context, tx sdk.Tx) (sdk.Coins,
feeCoins := feeTx.GetFee()
gas := feeTx.GetGas()
// Only allow alps | lps as a fee token
for _, coin := range feeCoins {
if coin.Denom != params.BaseCoinUnit {
return nil, 0, errorsmod.Wrapf(sdkerrors.ErrInvalidCoins, "only alps is accepted as fee denom")
if coin.Denom != params.BaseCoinUnit && coin.Denom != params.CoinUnit {
return nil, 0, errorsmod.Wrapf(sdkerrors.ErrInvalidCoins, "only %s or %s are accepted as fee denom", params.BaseCoinUnit, params.CoinUnit)
}
}