Skip to content

Commit

Permalink
removes redundant operation of adding an existing account
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Apr 1, 2024
1 parent f86d631 commit 221dba4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/util/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ func (g *Genesis) AddValidator(val Validator) error {
}

// Add the validator's genesis account
if err := g.AddAccount(val.Account); err != nil {
return err
}
//if err := g.AddAccount(val.Account); err != nil {
// return err
//}

g.accounts = append(g.accounts, val.Account)

// Add the validator's genesis transaction
gentx, err := val.GenTx(g.ecfg, g.kr, g.ChainID)
Expand Down

0 comments on commit 221dba4

Please sign in to comment.