From 9fc615830193f3fb4f0e527ca94871048021104d Mon Sep 17 00:00:00 2001 From: AlgoAxel <113933518+AlgoAxel@users.noreply.github.com> Date: Fri, 28 Apr 2023 09:44:05 -0400 Subject: [PATCH] Fix: Correct GeneratedAccountsMnemonics Check (#5274) --- cmd/pingpong/runCmd.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/pingpong/runCmd.go b/cmd/pingpong/runCmd.go index 7813d4f313..fe545f1749 100644 --- a/cmd/pingpong/runCmd.go +++ b/cmd/pingpong/runCmd.go @@ -438,7 +438,9 @@ var runCmd = &cobra.Command{ cfg.GeneratedAccountSampleMethod = generatedAccountSampleMethod } // check if numAccounts is greater than the length of the mnemonic list, if provided - if cfg.DeterministicKeys && cfg.NumPartAccounts > uint32(len(cfg.GeneratedAccountsMnemonics)) { + if cfg.DeterministicKeys && + len(cfg.GeneratedAccountsMnemonics) > 0 && + cfg.NumPartAccounts > uint32(len(cfg.GeneratedAccountsMnemonics)) { reportErrorf("numAccounts is greater than number of account mnemonics provided") }