Repository navigation
chore: review contract conventions section - #2229
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reviews and updates the contract conventions documentation section, with a focus on correcting technical inaccuracies and improving clarity. The changes include bug fixes (correcting variable names and event topic descriptions), documentation improvements (better explanations of error handling and TTL extension), and code example updates to reflect current best practices.
Changes:
- Fixed typos and variable naming errors across multiple documentation files
- Significantly expanded and restructured the TTL extension guide to better explain contract instance vs code entries
- Enhanced error handling documentation with clearer examples of
panic_with_error!vsResultpatterns - Updated import patterns and improved consistency in JavaScript SDK examples
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/learn/fundamentals/stellar-data-structures/events.mdx | Fixed system event topics to correctly show new_executable instead of duplicate old_executable |
| docs/build/guides/conventions/workspace.mdx | Updated contract client naming from generic ContractAClient/ContractAInterface to more descriptive AdderClient/Adder |
| docs/build/guides/conventions/upgrading-contracts.mdx | Fixed variable name typo (e to env) and corrected event topics description |
| docs/build/guides/conventions/extending-wasm-ttl.mdx | Major restructuring: clarified contract instance vs code TTL, added CLI examples, improved JS SDK usage with proper simulation |
| docs/build/guides/conventions/error-enum.mdx | Expanded documentation to explain both panic_with_error! and Result error handling patterns with clear examples |
| docs/build/guides/conventions/deploy-sac-with-code.mdx | Updated SDK imports to use StellarSdk.rpc.Server, improved variable naming consistency, removed duplicate declarations |
| docs/build/guides/conventions/deploy-contract.mdx | Updated example repository version from v20.2.0 to v22.0.1, corrected path from deployer/contracts to deployer/contract |
| docs/build/guides/conventions/cross-contract.mdx | Grammar and clarity improvements throughout, better explanation of contract client vs manual invocation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
4 similar comments
briwylde08
approved these changes
Feb 11, 2026
zachfedor
pushed a commit
to zachfedor/stellar-docs
that referenced
this pull request
Jun 18, 2026
* chore: review contract conventions section * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> * chore: fix code breakdown in extending-wasm-ttl --------- Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review and make minor adjustments to contract conventions docs.
Larger edits for the following pages:
/docs/build/guides/conventions/extending-wasm-ttl/docs/build/guides/conventions/error-enum