chore: audit crisis changes (backport #16609) (#16612)

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
mergify[bot] 2023-06-19 21:17:13 +00:00 committed by GitHub
parent 9f7a16080a
commit c5bda905ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}