parent
ac2e765607
commit
18415eedaf
1
.pending/improvements/sdk/4564-Allow-empty-ans
Normal file
1
.pending/improvements/sdk/4564-Allow-empty-ans
Normal file
@ -0,0 +1 @@
|
||||
#4564 Allow empty answer to evaluate as 'Y' on tx submission prompt.
|
||||
@ -98,7 +98,7 @@ func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error) {
|
||||
}
|
||||
|
||||
response = strings.ToLower(strings.TrimSpace(response))
|
||||
if response == "y" || response == "yes" {
|
||||
if response == "y" || response == "yes" || response == "" {
|
||||
return true, nil
|
||||
} else if response == "n" || response == "no" {
|
||||
return false, nil
|
||||
|
||||
Loading…
Reference in New Issue
Block a user