Commit 1eeb4b44 authored by Jacob Gadikian's avatar Jacob Gadikian
Browse files

Govet enabled and linting stuff fixed. tree.go.

parent 7c811f12
Showing with 5 additions and 5 deletions
+5 -5
......@@ -8,9 +8,9 @@ linters:
enable:
- errcheck
- gofmt
- govet
# - goimports
# - golint
- maligned
issues:
exclude-rules:
......
......@@ -332,13 +332,13 @@ func NewOsmosisApp(
*/
/* TODO: wat? I don't have a clue why this suddenly breaks. -- unless maybe it came in with the most recent merge.
/* TODO: wat? I don't have a clue why this suddenly breaks. -- unless maybe it came in with the most recent merge.
app.UpgradeKeeper.SetUpgradeHandler("v5", types.UpgradeHandler(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap{}) {
totalLiquidity := app.GAMMKeeper.GetLegacyTotalLiquidity(ctx)
app.GAMMKeeper.DeleteLegacyTotalLiquidity(ctx)
app.GAMMKeeper.SetTotalLiquidity(ctx, totalLiquidity)
})
*/
*/
// Create IBC Keeper
app.IBCKeeper = ibckeeper.NewKeeper(
......
......@@ -30,9 +30,9 @@ func migrateBranchValue(oldValueBz []byte) *store.Node {
}
cs := make([]*store.Child, len(oldValue))
for i, oldChild := range oldValue {
cs[i] = &store.Child{oldChild.Index, oldChild.Acc}
cs[i] = &store.Child{Index: oldChild.Index, Accumulation: oldChild.Acc}
}
return &store.Node{cs}
return &store.Node{Children: cs}
}
func migrateLeafValue(index []byte, oldValueBz []byte) *store.Leaf {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment