Skip to content

Fix undefined variable in stellar-asset-contract guide example - #2692

Merged
ElliotFriend merged 1 commit into
stellar:mainfrom
leighmcculloch:fix-undefined-var-stellar-asset-contract-guide
Jul 27, 2026
Merged

ElliotFriend merged 1 commit into
stellar:mainfrom
leighmcculloch:fix-undefined-var-stellar-asset-contract-guide

Conversation

@leighmcculloch

Copy link
Copy Markdown
Member

What

Make the example function's body reference the parameter it actually declared.

Why

The snippet referenced a variable name that was never declared, so it wouldn't compile as shown.

### What
Make the example function's body reference the parameter it actually declared.

### Why
The snippet referenced a variable name that was never declared, so it wouldn't compile as shown.
Copilot AI review requested due to automatic review settings July 27, 2026 02:04

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

Fixes the guide’s Rust example to reference its declared e parameter.

Changes:

  • Replaces the undefined env reference with e.

Recommendation: MERGE-READY — correct, complete, nothing needs human review.

@ElliotFriend
ElliotFriend merged commit 6a2ed0c into stellar:main Jul 27, 2026
6 checks passed
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