Skip to content

Commit

Permalink
print confirm msg (#47)
Browse files Browse the repository at this point in the history
Co-authored-by: 王迪 <wangdi@bianjie.ai>
  • Loading branch information
dgsbl and 王迪 authored Nov 10, 2020
1 parent e080e3f commit 03228cd
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions modules/token/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,8 @@ func GetCmdIssueToken() *cobra.Command {
}

// a confirmation is needed
//prompt += "\nAre you sure to proceed?"
//confirmed, err := input.GetConfirmation(prompt, bufio.NewReader(os.Stdin), cmd.ErrOrStderr())
//if err != nil {
// return err
//}
//
//if !confirmed {
// return fmt.Errorf("operation aborted")
//}
prompt += "\nAre you sure to proceed?"
fmt.Println(prompt)

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down Expand Up @@ -274,15 +267,8 @@ func GetCmdMintToken() *cobra.Command {
}

// a confirmation is needed
//prompt += "\nAre you sure to proceed?"
//confirmed, err := input.GetConfirmation(prompt, bufio.NewReader(os.Stdin), cmd.ErrOrStderr())
//if err != nil {
// return err
//}
//
//if !confirmed {
// return fmt.Errorf("operation aborted")
//}
prompt += "\nAre you sure to proceed?"
fmt.Println(prompt)

return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
},
Expand Down

0 comments on commit 03228cd

Please sign in to comment.