Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
osmosis
Commits
1eeb4b44
Commit
1eeb4b44
authored
3 years ago
by
Jacob Gadikian
Browse files
Options
Download
Email Patches
Plain Diff
Govet enabled and linting stuff fixed. tree.go.
parent
7c811f12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.golangci.yml
+1
-1
.golangci.yml
app/app.go
+2
-2
app/app.go
store/legacy/v101/tree.go
+2
-2
store/legacy/v101/tree.go
with
5 additions
and
5 deletions
+5
-5
.golangci.yml
+
1
-
1
View file @
1eeb4b44
...
...
@@ -8,9 +8,9 @@ linters:
enable
:
-
errcheck
-
gofmt
-
govet
# - goimports
# - golint
-
maligned
issues
:
exclude-rules
:
...
...
This diff is collapsed.
Click to expand it.
app/app.go
+
2
-
2
View file @
1eeb4b44
...
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
store/legacy/v101/tree.go
+
2
-
2
View file @
1eeb4b44
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets