Skip to content

chore: review contract conventions section - #2229

Merged
briwylde08 merged 5 commits into
stellar:mainfrom
mootz12:doc-review
Feb 11, 2026
Merged

briwylde08 merged 5 commits into
stellar:mainfrom
mootz12:doc-review

Conversation

@mootz12

@mootz12 mootz12 commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI review requested due to automatic review settings February 5, 2026 16:51

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 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! vs Result patterns
  • 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.

4 similar comments
@briwylde08
briwylde08 merged commit d422e8a into stellar:main Feb 11, 2026
5 checks passed
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]>
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.

4 participants