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

Aperta
#2,799 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@fnando ci sta già lavorando.

Dal 13/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Rust
Stelle
129
Fork
153
Merge medio
1g 14h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di stellar/stellar-cli

Tutte le issue di stellar/stellar-cli

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.