mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
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 {
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue