Skip to content

Update contract authorization how-to-guide cross contract auth example#2242

Merged
briwylde08 merged 4 commits intostellar:mainfrom
mootz12:update-non-root-auth-wording
Apr 8, 2026
Merged

Update contract authorization how-to-guide cross contract auth example#2242
briwylde08 merged 4 commits intostellar:mainfrom
mootz12:update-non-root-auth-wording

Conversation

@mootz12
Copy link
Copy Markdown
Contributor

@mootz12 mootz12 commented Feb 11, 2026

  • Fix bug that states non-root auth will error
  • Improve context as to why user.require_auth() is recommended at the top level of a contract call

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the contract authorization how-to guide to clarify cross-contract authorization flow and correct prior guidance around where to place require_auth() in the example.

Changes:

  • Replaces the prior “non-root auth will panic” explanation with guidance recommending user authorization at the entry point.
  • Clarifies (in prose) how top-level vs sub-invocation authorization is intended to be recorded for the cross-contract add_with()add() call path.

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

@stellar-jenkins
Copy link
Copy Markdown

@mootz12 mootz12 force-pushed the update-non-root-auth-wording branch from 551b5e0 to 0c1ebdc Compare February 11, 2026 20:25
@stellar-jenkins
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@briwylde08 briwylde08 left a comment

Choose a reason for hiding this comment

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

Thank you!!

@stellar-jenkins-ci
Copy link
Copy Markdown

1 similar comment
@stellar-jenkins-ci
Copy link
Copy Markdown

@briwylde08 briwylde08 merged commit 7a12887 into stellar:main Apr 8, 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.

6 participants