Improve voluntary exit confirmation prompt (#12205)

This commit is contained in:
Radosław Kapka 2023-03-29 16:17:21 +02:00 committed by GitHub
parent 61fed336e1
commit 5ea0417df2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,8 +207,7 @@ func FilterExitAccountsFromUserInput(
"Please navigate to the following website and make sure you understand the current implications " +
"of a voluntary exit before making the final decision:"
promptURL := au.Blue("https://docs.prylabs.network/docs/wallet/exiting-a-validator/#withdrawal-delay-warning")
promptQuestion := "If you still want to continue with the voluntary exit, please input a phrase found at the end " +
"of the page from the above URL"
promptQuestion := "If you still want to continue with the voluntary exit, please input a phrase found at the above URL"
promptText := fmt.Sprintf("%s\n%s\n%s\n%s", promptHeader, promptDescription, promptURL, promptQuestion)
resp, err := prompt.ValidatePrompt(r, promptText, func(input string) error {
return prompt.ValidatePhrase(input, ExitPassphrase)