cli: allow to relay transaction on Enter

Close #2307.
This commit is contained in:
Anna Shaleva 2021-12-09 19:09:16 +03:00
parent f14f7b9396
commit 6c2bf7af78

View file

@ -69,7 +69,7 @@ func ConfirmTx(w io.Writer, tx *transaction.Transaction) error {
if err != nil { if err != nil {
return err 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 nil
} }
return errors.New("cancelled") return errors.New("cancelled")