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
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:
parent
35665ded10
commit
66118cc23d
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user