Unverified Commit a86a1725 authored by Sunny Aggarwal's avatar Sunny Aggarwal Committed by GitHub
Browse files

dont override balances in import-genesis-account-from-snapshot (#239)

parent b758cc74
Showing with 3 additions and 2 deletions
+3 -2
......@@ -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 {
......
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