Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Oct 19, 2024
1 parent 901431f commit 083bd5d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions x/feemarket/post/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,17 @@ func (dfd FeeMarketDeductDecorator) PostHandle(ctx sdk.Context, tx sdk.Tx, simul
payCoin = feeCoins[0]
}

// if the tx failed, deal with escrowed funds and return early
if !success && !simulate {
err := DeductCoins(dfd.bankKeeper, ctx, sdk.NewCoins(payCoin), params.DistributeFees)
if err != nil {
return ctx, err
/*
// if the tx failed, deal with escrowed funds and return early
if !success && !simulate {
err := DeductCoins(dfd.bankKeeper, ctx, sdk.NewCoins(payCoin), params.DistributeFees)
if err != nil {
return ctx, err
}
return next(ctx, tx, simulate, success)
}

return next(ctx, tx, simulate, success)
}
*/

feeGas := int64(feeTx.GetGas())

Expand Down

0 comments on commit 083bd5d

Please sign in to comment.