Skip to content

Commit

Permalink
added store key instructions to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sampocs committed Nov 27, 2022
1 parent 1d435b4 commit bd10678
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/upgrades/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ func (app *StrideApp) setupUpgradeHandlers() {
panic(fmt.Errorf("Failed to read upgrade info from disk: %w", err))
}
...

// If adding a new module, add the new store keys
switch upgradeInfo.Name {
// no store upgrades
...
case {upgradeVersion}:
storeUpgrades = &storetypes.StoreUpgrades{
Added: []string{module.StoreKey},
}
}
```
# Migrations (Only required if the state changed)
Expand Down

0 comments on commit bd10678

Please sign in to comment.