This commit adds in-store migrations for the x/mint module, allowing us to leverage the SDK upgrade module to do migrations, rather than using the old export method.
A software upgrade gov proposal for version v1.1 must be created and pass before running this code.
I hardcoded version "v1.1" as Go constant here, but we can do pretty much whatever in terms of version naming, the important thing is it must match what's written in the gov proposal.
To test this change create a chain devnet using the latest released Elesto version, and use the following gov settings in genesis.json:
This commit adds in-store migrations for the x/mint module, allowing us to leverage the SDK upgrade module to do migrations, rather than using the old export method.
A software upgrade gov proposal for version v1.1 must be created and pass before running this code.
I hardcoded version "v1.1" as Go constant here, but we can do pretty much whatever in terms of version naming, the important thing is it must match what's written in the gov proposal.
To test this change create a chain devnet using the latest released Elesto version, and use the following
gov
settings ingenesis.json
:Create a software upgrade for version
v1.1
:Vote on the proposal:
Then wait! At block 30 you'll see a consensus failure, this is normal:
After that, build this branch and run it, the chain should just work™️: