Skip to content

Document testing constructor authorization - #2682

Open
leighmcculloch wants to merge 1 commit into
mainfrom
register-constructor-auth-docs
Open

Document testing constructor authorization#2682
leighmcculloch wants to merge 1 commit into
mainfrom
register-constructor-auth-docs

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Jul 24, 2026

Copy link
Copy Markdown
Member

What

Document that env.register/env.register_at mock a contract's constructor authorization, and that testing it requires deploying via env.deployer().with_address(...).deploy_v2(...) instead.

Why

The testing guide covers asserting on auths but never mentioned that registration auto-authorizes a constructor's require_auth calls, a nuance the SDK's rustdoc was just updated to call out in stellar/rs-soroban-sdk#1950.

@stellar-jenkins-ci

Copy link
Copy Markdown

@leighmcculloch
leighmcculloch marked this pull request as ready for review July 24, 2026 22:06
@leighmcculloch
leighmcculloch requested review from ElliotFriend and Copilot and removed request for Copilot July 24, 2026 22:06
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.

1 participant