forked from TrueCloudLab/neoneo-go
Merge pull request #2308 from nspcc-dev/cli/fix-relay-tx
cli: allow to relay transaction on Enter
This commit is contained in:
commit
ad74061fc7
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue