Skip to content

Fix conflicting comment on rent fee#304

Merged
leighmcculloch merged 1 commit into
mainfrom
fix-rent-fee-refundable-comment
Jun 10, 2026
Merged

Fix conflicting comment on rent fee#304
leighmcculloch merged 1 commit into
mainfrom
fix-rent-fee-refundable-comment

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Correct the documentation comment on rentFeeCharged in SorobanTransactionMetaExtV1 so it describes the rent fee as a component of totalRefundableResourceFeeCharged.

Why

The struct contained two comments that contradicted each other: the comment on totalRefundableResourceFeeCharged lists the rent fee as one of its components, while the comment on rentFeeCharged stated it was part of totalNonRefundableResourceFeeCharged. Rent is a refundable Soroban resource that is charged based on actual usage, as documented in the Stellar fees, resource limits, and metering docs, so the comment on rentFeeCharged was the incorrect one.


Generated by Claude Code

The comment for rentFeeCharged stated it is part of
totalNonRefundableResourceFeeCharged, contradicting the comment on
totalRefundableResourceFeeCharged which lists the rent fee as one of its
components. Rent is a refundable resource, so rentFeeCharged is part of
totalRefundableResourceFeeCharged.
@leighmcculloch leighmcculloch requested review from dmkozh and sisuresh June 9, 2026 07:30
@leighmcculloch leighmcculloch marked this pull request as ready for review June 9, 2026 07:30
Copilot AI review requested due to automatic review settings June 9, 2026 07:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the documentation comment for rentFeeCharged in SorobanTransactionMetaExtV1 to accurately describe rent as a component of totalRefundableResourceFeeCharged, aligning it with the surrounding fee breakdown documentation.

Changes:

  • Update the rentFeeCharged comment to state it is part of totalRefundableResourceFeeCharged (not non-refundable).
  • Resolve an internal documentation contradiction within SorobanTransactionMetaExtV1’s Soroban fee component descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leighmcculloch leighmcculloch merged commit 8521b97 into main Jun 10, 2026
8 checks passed
@leighmcculloch leighmcculloch deleted the fix-rent-fee-refundable-comment branch June 10, 2026 02:07
sisuresh added a commit to sisuresh/stellar-xdr-next that referenced this pull request Jul 1, 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.

3 participants