Skip to content

Make keys generate to no longer fund - #1887

Merged
ifropc merged 6 commits into
mainfrom
keys-generate-no-fund
Mar 6, 2025
Merged

ifropc merged 6 commits into
mainfrom
keys-generate-no-fund

Conversation

@ifropc

@ifropc ifropc commented Feb 22, 2025 •

Copy link
Copy Markdown
Contributor

What

Previously, --fund flag was added, and funding by default gave a warning.
In this PR -no-fund flag was removed, and default behavior flipped to no longer fund

Why

Closing #1407

Known limitations

Depends on #1888

@fnando fnando left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@ifropc
ifropc enabled auto-merge (squash) March 6, 2025 00:33
@ifropc
ifropc merged commit 01d1d36 into main Mar 6, 2025
@ifropc
ifropc deleted the keys-generate-no-fund branch March 6, 2025 01:02
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Mar 6, 2025
@tupui

tupui commented Mar 6, 2025

Copy link
Copy Markdown

Oh, no deprecation warning? I was personally relying on auto funding for my tests 😅

@fnando

fnando commented Mar 6, 2025 •

Copy link
Copy Markdown
Member

@tupui this command was already outputing a deprecation message on v22, and will be removed on v23.

$ stellar --version
stellar 22.3.0 (3a00de5e6c579479e943f5914f2fcfaca8426c8c)
stellar-xdr 22.1.0 (e13922970800d95b523413018b2279df42df3442)
xdr curr (529d5176f24c73eeccfa5eba481d4e89c19b1181)

 $ stellar keys generate foo
⚠️ Behavior of `generate` will change in the future, and it will no longer fund by default. If you want to fund please provide `--fund` flag. If you don't need to fund your keys in the future, ignore this warning. It can be suppressed with -q flag.
✅ Key saved with alias foo in "/private/tmp/test/.stellar/identity/foo.toml"
✅ Account KeyName("foo") funded on "Test SDF Network ; September 2015"

You can fund the account by using stellar keys generate foo --fund from now on.

@tupui

tupui commented Mar 6, 2025 •

Copy link
Copy Markdown

Thanks, I will pay more attention to the command outputs 👍 It was missing from the release notes of v22 which I read. That's how I came across this PR.

[EDIT] I see Add warning on no fund flag but this is really not clear, especially without a deprecated section.

@fnando

fnando commented Mar 6, 2025

Copy link
Copy Markdown
Member

@tupui good call! I'll let the team know so we have better documentation on deprecations and removals using the release page.

@tupui

tupui commented Mar 6, 2025

Copy link
Copy Markdown

Thank you 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[22.0] stellar keys generate should no longer fund

3 participants