Skip to content

Commit

Permalink
missing params setting
Browse files Browse the repository at this point in the history
  • Loading branch information
xmariachi committed Feb 19, 2025
1 parent bdcb837 commit 58d697a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/emissions/keeper/msgserver/msg_server_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ func (ms msgServer) UpdateParams(ctx context.Context, msg *types.UpdateParamsReq
if len(newParams.MaxWhitelistInputArrayLength) == 1 {
existingParams.MaxWhitelistInputArrayLength = newParams.MaxWhitelistInputArrayLength[0]
}
if len(newParams.MinWeightThresholdForStdnorm) == 1 {
existingParams.MinWeightThresholdForStdnorm = newParams.MinWeightThresholdForStdnorm[0]
}
err = existingParams.Validate()
if err != nil {
return nil, err
Expand Down

0 comments on commit 58d697a

Please sign in to comment.