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
a86a1725
Unverified
Commit
a86a1725
authored
3 years ago
by
Sunny Aggarwal
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
dont override balances in import-genesis-account-from-snapshot (#239)
parent
b758cc74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/osmosisd/cmd/genaccounts.go
+3
-2
cmd/osmosisd/cmd/genaccounts.go
with
3 additions
and
2 deletions
+3
-2
cmd/osmosisd/cmd/genaccounts.go
+
3
-
2
View file @
a86a1725
...
...
@@ -241,7 +241,9 @@ Example:
normalizationFactor
:=
genesisParams
.
AirdropSupply
.
ToDec
()
.
QuoInt
(
snapshot
.
TotalOsmosAirdropAmount
)
fmt
.
Printf
(
"normalization factor: %s
\n
"
,
normalizationFactor
)
liquidBalances
:=
[]
banktypes
.
Balance
{}
bankGenState
:=
banktypes
.
GetGenesisStateFromAppState
(
cdc
,
appState
)
liquidBalances
:=
bankGenState
.
Balances
claimRecords
:=
[]
claimtypes
.
ClaimRecord
{}
claimModuleAccountBalance
:=
sdk
.
NewInt
(
0
)
...
...
@@ -307,7 +309,6 @@ Example:
appState
[
authtypes
.
ModuleName
]
=
authGenStateBz
// bank module genesis
bankGenState
:=
banktypes
.
GetGenesisStateFromAppState
(
depCdc
,
appState
)
bankGenState
.
Balances
=
banktypes
.
SanitizeGenesisBalances
(
liquidBalances
)
bankGenStateBz
,
err
:=
cdc
.
MarshalJSON
(
bankGenState
)
if
err
!=
nil
{
...
...
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