Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
parent
9f7a16080a
commit
c5bda905ac
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user