You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetNewParams() in x/stake sets all parameter from params struct. This will be used only for initializing all parameters in testing. We should define SetXXX()s for individual parameters and use it for production code.
If we have code like this for tests, lets make it visually obvious. e.g. instead of SetNewParams, instead do TestingSetNewParams or SetNewParamsForTesting.
SetNewParams() in x/stake sets all parameter from params struct. This will be used only for initializing all parameters in testing. We should define SetXXX()s for individual parameters and use it for production code.
Also see: #1772 conversation.
The text was updated successfully, but these errors were encountered: