-
Notifications
You must be signed in to change notification settings - Fork 72
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
keys generate
: don't overwrite existing account
#1380
Comments
Friendbot doesn't support topping off. Friendbot only creates new accounts and doesn't currently have the ability to send funds to existing accounts. Instead of adding force, we can error and require the explicit removal instead of adding new options. So the way to do a force is just a remove and generate. Wdyt? |
You can top off with friendbot. Generate a temporary account then transfer all funds to existing account. But after some reflection, since we have a |
keys generate
: don't overwrite existing account without --force
keys generate
: don't overwrite existing account
I like it, @leighmcculloch @willemneal. I've added this: And I updated the description here to mention it and to get rid of the |
But there's a new question: With #1389, we're considering adding a |
the way i usually handle topoffs is by creating a new account + funding with friendbot, then merging the account. That means the existing account will be refilled with 10K XLM every time, which is good enough. I personally wouldn't add a |
Wouldn't hurt the UX to output to stderr a message saying that the account has been funded, and then how to refund it using #1389. Today the command and its output looks like this:
We could change it to:
|
What problem does your feature solve?
Right now if you have an existing account named
alice
and you runkeys generate
again, it will generate a new account, overwrite the oldalice.toml
file with the new seed phrase, and fund the new account.What would you like to see?
By default
keys fund
: top-off accounts if below--minimum-balance
#1389)keys rm
firstHere's an example of what this could look like:
Or, if the account doesn't have sufficient balance:
What alternatives are there?
With #1389, we're considering adding a
--minimum-balance
option. I think for the sake of clarity & simplicity, we do NOT add that tokeys generate
. But should we mention the existence ofkeys fund
in the output here?The text was updated successfully, but these errors were encountered: