forked from cerc-io/laconicd-deprecated
fix value transfer (#341)
* debugging balance and gas * add prints * remove gas consumption in ante handler * cleanup * fix test
This commit is contained in:
@@ -256,7 +256,7 @@ func (suite *AnteTestSuite) TestEthInvalidIntrinsicGas() {
|
||||
|
||||
tx, err := newTestEthTx(suite.ctx, ethMsg, priv1)
|
||||
suite.Require().NoError(err)
|
||||
requireInvalidTx(suite.T(), suite.anteHandler, suite.ctx, tx, false)
|
||||
requireInvalidTx(suite.T(), suite.anteHandler, suite.ctx.WithIsCheckTx(true), tx, false)
|
||||
}
|
||||
|
||||
func (suite *AnteTestSuite) TestEthInvalidMempoolFees() {
|
||||
|
||||
@@ -319,8 +319,6 @@ func (egcd EthGasConsumeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simula
|
||||
|
||||
// Set gas meter after ante handler to ignore gaskv costs
|
||||
newCtx = auth.SetGasMeter(simulate, ctx, gasLimit)
|
||||
newCtx.GasMeter().ConsumeGas(gas, "eth intrinsic gas")
|
||||
|
||||
return next(newCtx, tx, simulate)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user