Created
July 5, 2022 01:05
-
-
Save zeroFruit/17b78c7e956519bbdd8a2b5ff1c37ff2 to your computer and use it in GitHub Desktop.
Cosmos Dev Series: Cosmos-SDK-based Blockchain Upgrade - UpgradeHandler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package v2 // upgrades.go | |
func CreateUpgradeHandler( | |
mm *module.Manager, | |
configurator module.Configurator, | |
... | |
) upgradetypes.UpgradeHandler { | |
return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | |
... | |
return mm.RunMigrations(ctx, configurator, vm) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment