Skip to content

Commit

Permalink
cmd/staking-deposit-cli/deposit/submit/deposit.go: fix args order
Browse files Browse the repository at this point in the history
  • Loading branch information
rgeraldes24 committed Jan 10, 2024
1 parent 105d50c commit df6c354
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/staking-deposit-cli/deposit/submit/deposit.go
Expand Up @@ -148,7 +148,8 @@ func importDepositDataJSON(folder string) ([]*stakingdeposit.DepositData, error)

var file string
for _, entry := range entries {
if !entry.IsDir() && strings.HasPrefix(depositDataFilePrefix, entry.Name()) {
fmt.Println(entry.Name())
if !entry.IsDir() && strings.HasPrefix(entry.Name(), depositDataFilePrefix) {
file = entry.Name()
break
}
Expand Down

0 comments on commit df6c354

Please sign in to comment.