forked from cerc-io/laconicd-deprecated
ante: fix panic in when gas price larger than 100000 (#750)
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ func (emfd EthMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
|
||||
evmDenom := emfd.evmKeeper.GetParams(ctx).EvmDenom
|
||||
|
||||
// fee = gas price * gas limit
|
||||
fee := sdk.NewInt64DecCoin(evmDenom, msgEthTx.Fee().Int64())
|
||||
fee := sdk.NewDecCoin(evmDenom, sdk.NewIntFromBigInt(msgEthTx.Fee()))
|
||||
|
||||
minGasPrices := ctx.MinGasPrices()
|
||||
minFees := minGasPrices.AmountOf(evmDenom).MulInt64(int64(msgEthTx.Data.GasLimit))
|
||||
|
||||
Reference in New Issue
Block a user