Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Aug 23, 2024
1 parent 8f9f034 commit 8f27259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x/feemarket/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (dfd feeMarketCheckDecorator) EscrowFunds(ctx sdk.Context, sdkTx sdk.Tx, pr
}

// fork gas and don't count escrow cost
// NOTE: all keeper calls until the end of this scope incur no gas consumption.
cacheGas := ctx.GasMeter().GasConsumed()
defer func() {
ctx = ctx.WithGasMeter(storetypes.NewGasMeter(ctx.GasMeter().Limit()))
Expand Down
1 change: 1 addition & 0 deletions x/feemarket/post/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (dfd FeeMarketDeductDecorator) PayOutFeeAndTip(ctx sdk.Context, fee, tip sd
var events sdk.Events

// fork gas and don't count payout cost
// NOTE: all keeper calls until the end of this scope incur no gas consumption.
cacheGas := ctx.GasMeter().GasConsumed()
defer func() {
ctx = ctx.WithGasMeter(storetypes.NewGasMeter(ctx.GasMeter().Limit()))
Expand Down

0 comments on commit 8f27259

Please sign in to comment.