From 221dba4cde69923c5945eb6b720978777210fd56 Mon Sep 17 00:00:00 2001 From: sanaz Date: Mon, 1 Apr 2024 13:45:57 -0700 Subject: [PATCH] removes redundant operation of adding an existing account --- test/util/genesis/genesis.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/util/genesis/genesis.go b/test/util/genesis/genesis.go index 6d7f55228f..d74886d851 100644 --- a/test/util/genesis/genesis.go +++ b/test/util/genesis/genesis.go @@ -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)