Share inclusion-fee resolution between token write commands and mint/clawback/set-admin

Offen
#2,799 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@fnando arbeitet bereits daran.

Seit 13.10.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

Follow-up from review discussion on #2786.

PR #2786 made the five hand-built token write commands (transfer, burn, approve, transfer-from, burn-from) honor the configured inclusion fee by reading STELLAR_FEE/STELLAR_INCLUSION_FEE directly in token::args::configured_fees(). These commands take --from/--spender instead of --source, so they can't flatten config::Args and pick up its clap-resolved fee fields the way mint/clawback/set-admin do. That leaves two resolution paths for the same env vars.

Proposed: lift fee/inclusion_fee out of config::Args into a flattenable sub-struct and flatten it into both config::Args and the five token write commands, so clap resolves them identically everywhere and configured_fees() can be removed.

Vorherrschende Sprache
Rust
Sterne
129
Forks
153
Ø Merge
1 T. 14 Std.
Gemergte PRs (30 T.)
11

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stellar/stellar-cli

Alle Issues in stellar/stellar-cli

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.