Skip to content

Rename token doc's approve arg to live_until_ledger - #2846

Merged
leighmcculloch merged 5 commits into
mainfrom
token-docs-live-until-ledger
Sep 11, 2026
Merged

Rename token doc's approve arg to live_until_ledger#2846
leighmcculloch merged 5 commits into
mainfrom
token-docs-live-until-ledger

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Sep 9, 2026

Copy link
Copy Markdown
Member

What

Rename expiration_ledger to live_until_ledger in the token example code embedded in docs/build/smart-contracts/example-contracts/tokens.mdx, matching the parameter name shown in the actual example source.

Why

To keep the example updated to match the stellar/soroban-examples code, which was updated in stellar/soroban-examples#415.

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot removed the preview Preview builds for PRs by SDF employees. label Sep 9, 2026
@leighmcculloch
leighmcculloch marked this pull request as ready for review September 9, 2026 21:20
Copilot AI balanced review requested due to automatic review settings September 9, 2026 21:20

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

Renames token allowance fields and parameters to live_until_ledger.

Changes:

  • Updates allowance storage and validation naming.
  • Updates approve while preserving the event field name.

Recommendation: NEEDS-CHANGES — align the code sample with the page’s pinned source version.


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/build/smart-contracts/example-contracts/tokens.mdx

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

docs/build/smart-contracts/example-contracts/tokens.mdx:345

  • The upstream change deliberately retains expiration_ledger only for event compatibility and adds an explanatory comment. Without that note, this lone old name looks like an incomplete rename and obscures that changing it would break on-chain event compatibility; copy the source explanation here.

Comment thread docs/build/smart-contracts/example-contracts/tokens.mdx
@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings September 10, 2026 20:25
@github-actions github-actions Bot removed the preview Preview builds for PRs by SDF employees. label Sep 10, 2026

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings September 11, 2026 12:15
@github-actions github-actions Bot removed the preview Preview builds for PRs by SDF employees. label Sep 11, 2026

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions github-actions Bot added the preview Preview builds for PRs by SDF employees. label Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@leighmcculloch
leighmcculloch merged commit 722ac63 into main Sep 11, 2026
10 checks passed
@leighmcculloch
leighmcculloch deleted the token-docs-live-until-ledger branch September 11, 2026 20:25
@github-actions github-actions Bot removed the preview Preview builds for PRs by SDF employees. label Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Preview: torn down

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