Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kioqq committed Oct 18, 2023
1 parent 1940412 commit 1b20dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/auth/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ import (
func (ak AccountKeeper) InitGenesis(ctx sdk.Context, data types.GenesisState) {
ak.SetParams(ctx, data.Params)

ctx.Logger().Debug("AUTH: running UnpackAccounts")
ctx.Logger().Debug("AUTH#InitGenesis: running UnpackAccounts")

accounts, err := types.UnpackAccounts(data.Accounts)
if err != nil {
panic(err)
}

ctx.Logger().Debug("AUTH: running SanitizeGenesisAccounts")
ctx.Logger().Debug("AUTH#InitGenesis: running SanitizeGenesisAccounts")
accounts = types.SanitizeGenesisAccounts(accounts)

ctx.Logger().Debug("AUTH: running SetGenesisAccounts")
ctx.Logger().Debug("AUTH#InitGenesis: running SetGenesisAccounts")
for _, a := range accounts {
acc := ak.NewAccount(ctx, a)
ak.SetAccount(ctx, acc)
}

ctx.Logger().Debug("AUTH: running GetModuleAccount")
ctx.Logger().Debug("AUTH#InitGenesis: running GetModuleAccount")

ak.GetModuleAccount(ctx, types.FeeCollectorName)
}
Expand Down

0 comments on commit 1b20dc2

Please sign in to comment.