diff --git a/client/wallet/main.go b/client/wallet/main.go index 4ae2a7c67..b90762ea2 100644 --- a/client/wallet/main.go +++ b/client/wallet/main.go @@ -75,6 +75,10 @@ func main() { case "import": accountImportCommand.Parse(os.Args[3:]) priKey := *accountImportPtr + if priKey == "" { + fmt.Println("Error: --privateKey is required") + return + } if !accountImportCommand.Parsed() { fmt.Println("Failed to parse flags") }