Skip to content

Commit

Permalink
use update
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Nov 28, 2023
1 parent 8fa833b commit c65be63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/feemarket/post/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ func (dfd FeeMarketDeductDecorator) PostHandle(ctx sdk.Context, tx sdk.Tx, simul
return ctx, errorsmod.Wrapf(err, "unable to get fee market state")
}

state.Window[state.Index] += gas
err = state.Update(gas)
if err != nil {
return ctx, errorsmod.Wrapf(err, "unable to update fee market state")
}

err = dfd.feemarketKeeper.SetState(ctx, state)
if err != nil {
return ctx, errorsmod.Wrapf(err, "unable to set fee market state")
Expand Down

0 comments on commit c65be63

Please sign in to comment.