github.com/Finschia/finschia-sdk@v0.48.1/x/slashing/legacy/v043/store.go (about) 1 package v043 2 3 import ( 4 sdk "github.com/Finschia/finschia-sdk/types" 5 v043distribution "github.com/Finschia/finschia-sdk/x/distribution/legacy/v043" 6 v040slashing "github.com/Finschia/finschia-sdk/x/slashing/legacy/v040" 7 ) 8 9 // MigrateStore performs in-place store migrations from v0.40 to v0.43. The 10 // migration includes: 11 // 12 // - Change addresses to be length-prefixed. 13 func MigrateStore(ctx sdk.Context, storeKey sdk.StoreKey) error { 14 store := ctx.KVStore(storeKey) 15 v043distribution.MigratePrefixAddress(store, v040slashing.ValidatorSigningInfoKeyPrefix) 16 v043distribution.MigratePrefixAddressBytes(store, v040slashing.ValidatorMissedBlockBitArrayKeyPrefix) 17 v043distribution.MigratePrefixAddress(store, v040slashing.AddrPubkeyRelationKeyPrefix) 18 19 return nil 20 }