remove the operation code that makes gas meter into zero (#777)
* remove the operation code that makes gas meter into zero * just delete the code Co-authored-by: Daniel Choi <13338103+araskachoi@users.noreply.github.com>
This commit is contained in:
parent
4a1c3e02c9
commit
7995ccd609
@ -39,8 +39,6 @@ func NewEthSetupContextDecorator() EthSetupContextDecorator {
|
|||||||
// This is undone at the EthGasConsumeDecorator, where the context is set with the
|
// This is undone at the EthGasConsumeDecorator, where the context is set with the
|
||||||
// ethereum tx GasLimit.
|
// ethereum tx GasLimit.
|
||||||
func (escd EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
func (escd EthSetupContextDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (newCtx sdk.Context, err error) {
|
||||||
ctx = ctx.WithBlockGasMeter(sdk.NewInfiniteGasMeter())
|
|
||||||
|
|
||||||
// all transactions must implement GasTx
|
// all transactions must implement GasTx
|
||||||
gasTx, ok := tx.(authante.GasTx)
|
gasTx, ok := tx.(authante.GasTx)
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user