Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small nit on avalanche key transfer command #2225

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/keycmd/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ func transferF(*cobra.Command, []string) error {
var useLedger bool
goalStr := ""
if send {
goalStr = " for the sender address"
goalStr = "as the sender address"
} else {
goalStr = " for the destination address"
goalStr = "as the destination address"
}
useLedger, keyName, err = prompts.GetKeyOrLedger(app.Prompt, goalStr, app.GetKeyDir(), true)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/prompts/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ func (prompter *realPrompter) ChooseKeyOrLedger(goal string) (bool, error) {
ledgerOption = "Use ledger"
)
option, err := prompter.CaptureList(
fmt.Sprintf("Which key source should be used to %s?", goal),
fmt.Sprintf("Which key should be used %s?", goal),
[]string{keyOption, ledgerOption},
)
if err != nil {
Expand Down Expand Up @@ -886,7 +886,7 @@ func CaptureKeyName(prompt Prompter, goal string, keyDir string, includeEwoq boo
if size > 10 {
size = 10
}
keyName, err := prompt.CaptureListWithSize(fmt.Sprintf("Which stored key should be used to %s?", goal), keyNames, size)
keyName, err := prompt.CaptureListWithSize(fmt.Sprintf("Which stored key should be used %s?", goal), keyNames, size)
if err != nil {
return "", err
}
Expand Down
Loading