Merge pull request #2308 from nspcc-dev/cli/fix-relay-tx

cli: allow to relay transaction on Enter
This commit is contained in:
Roman Khimov 2021-12-09 19:15:25 +03:00 committed by GitHub
commit ad74061fc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ func ConfirmTx(w io.Writer, tx *transaction.Transaction) error {
if err != nil {
return err
}
if 0 < len(ln) && ln[0] == 'y' || ln[0] == 'Y' {
if 0 < len(ln) && (ln[0] == 'y' || ln[0] == 'Y') {
return nil
}
return errors.New("cancelled")