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
RunMigrations is run which calls initGenesis. If I were to cal GetParams in the upgrade handler, we would get the following error (truncated for brevity):
You also can't use SetParams, since that would require you to call GetParams to get the current state which would have the same error above. To get around this, I exposed the Set command at each module so we can manually set the new value in the upgrade handler.
My recommendation would be that, when a new value gets added to the ParamKeyTable, the DefaultValue of that type is automatically assigned. This would allow for simpler manipulation at the upgrade handler level rather than hacking around it as I did.
Not really a massive issue, just a QoL that will likely save other chains time in the future.
Cosmos SDK Version
0.45 (osmosis fork)
How to reproduce?
No response
The text was updated successfully, but these errors were encountered:
Hey the params modules has been marked as maintenance mode only. We have migrated away from it for many reasons. Unfortunately we will not be able to fix this issue. I know osmosis is migrating to 0.50, this will fix your issue
Is there an existing issue for this?
What happened?
What happened:
When introducing a new parameter, the new parameter must be manually set, even if the desired value of that parameter is nil. See the following upgrade handler: https://github.com/osmosis-labs/osmosis/blob/54261649fd3d1e372749261430de642cebd9e95a/app/upgrades/v20/upgrades.go#L13-L32
RunMigrations is run which calls initGenesis. If I were to cal GetParams in the upgrade handler, we would get the following error (truncated for brevity):
You also can't use SetParams, since that would require you to call GetParams to get the current state which would have the same error above. To get around this, I exposed the Set command at each module so we can manually set the new value in the upgrade handler.
My recommendation would be that, when a new value gets added to the ParamKeyTable, the DefaultValue of that type is automatically assigned. This would allow for simpler manipulation at the upgrade handler level rather than hacking around it as I did.
Not really a massive issue, just a QoL that will likely save other chains time in the future.
Cosmos SDK Version
0.45 (osmosis fork)
How to reproduce?
No response
The text was updated successfully, but these errors were encountered: