Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 8, 2024
1 parent dc1a470 commit bee77a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x/auth/helpers/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ func AddGenesisAccounts(
baseAccount := authtypes.NewBaseAccount(accAddr, nil, 0, 0)

vestingAmt := acc.VestingAmt
if !vestingAmt.IsZero() {
switch {
case !vestingAmt.IsZero():
vestingStart := acc.VestingStart
vestingEnd := acc.VestingEnd

Expand All @@ -218,9 +219,9 @@ func AddGenesisAccounts(
default:
return errors.New("invalid vesting parameters; must supply start and end time or end time")
}
} else if acc.ModuleName != "" {
case acc.ModuleName != "":
genAccount = authtypes.NewEmptyModuleAccount(acc.ModuleName, authtypes.Burner, authtypes.Minter)
} else {
default:
genAccount = baseAccount
}

Expand Down

0 comments on commit bee77a8

Please sign in to comment.