Skip to content

fix: report oversized simulated fees instead of TxMalformed - #100

Merged
pselle merged 1 commit into
mainfrom
fix/fee-overflow-error
Oct 25, 2026
Merged

pselle merged 1 commit into
mainfrom
fix/fee-overflow-error

Conversation

@pselle

@pselle pselle commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Companion to stellar-registry/contracts#73. On testnet this fails with an opaque TxMalformed:

stellar registry deploy \
  --contract-name unverified/my-token \
  --wasm-name oz/ft-standard \
  -- --name "My Token" --symbol MTK --decimals 7 --owner me --initial_supply 1000000

The real problem is a ~20K XLM rent charge (fixed in the contracts PR), but simulate_and_assemble_transaction sets the fee to 0 when it doesn't fit in the u32 fee field, and deploy/deploy-unnamed submitted it anyway. They now stop before signing:

error: simulated fee of ~25544 XLM is too large for a transaction; the call is likely paying unexpected storage rent

I didn't add fee-bump support, since a fee that size is a bug rather than something to pay.

@pselle pselle self-assigned this Oct 25, 2026
@pselle
pselle marked this pull request as ready for review October 25, 2026 13:54
@pselle
pselle force-pushed the fix/fee-overflow-error branch from 092a286 to 43e832d Compare October 25, 2026 14:01
stellar-cli zeroes the fee when simulation exceeds the u32 fee field, so
deploy submitted it and failed with an opaque TxMalformed.

Co-Authored-By: Claude <[email protected]>
@pselle
pselle force-pushed the fix/fee-overflow-error branch from 43e832d to de1ed43 Compare October 25, 2026 14:02
@pselle
pselle requested a review from willemneal October 25, 2026 17:28
@pselle
pselle merged commit 1482f47 into main Oct 25, 2026
5 checks passed
@pselle
pselle deleted the fix/fee-overflow-error branch October 25, 2026 17:42
@aha-release-plz aha-release-plz Bot mentioned this pull request Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants