Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
refund in evm
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear committed Nov 2, 2023
1 parent cfc890f commit 1a02047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cosmos/x/evm/keeper/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ func (k *Keeper) ProcessPayloadEnvelope(
// Reset GasMeter to 0.
gasMeter.RefundGas(gasMeter.GasConsumed(), "reset before evm block")
blockGasMeter.RefundGas(blockGasMeter.GasConsumed(), "reset before evm block")
defer gasMeter.ConsumeGas(gasMeter.GasConsumed(), "reset after evm")
defer gasMeter.RefundGas(gasMeter.GasConsumed(), "reset after evm")
defer blockGasMeter.RefundGas(blockGasMeter.GasConsumed(), "reset after evm")

if err = envelope.UnmarshalJSON(msg.Data); err != nil {
return nil, fmt.Errorf("failed to unmarshal payload envelope: %w", err)
Expand Down

0 comments on commit 1a02047

Please sign in to comment.