Skip to content

Commit

Permalink
chore: audit crisis changes (#16609)
Browse files Browse the repository at this point in the history
(cherry picked from commit 76b62cb)
  • Loading branch information
tac0turtle authored and mergify[bot] committed Jun 19, 2023
1 parent 9f7a160 commit cf0eeb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/crisis/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ func (k *Keeper) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (
return nil, errors.Wrap(sdkerrors.ErrInvalidCoins, "negative constant fee")
}

sdkCtx := sdk.UnwrapSDKContext(ctx)
if err := k.ConstantFee.Set(sdkCtx, msg.ConstantFee); err != nil {
if err := k.ConstantFee.Set(ctx, msg.ConstantFee); err != nil {
return nil, err
}

Expand Down

0 comments on commit cf0eeb4

Please sign in to comment.