Skip to content

Example contracts on testnet disappear after every reset #3128

Open

Description

@ElliotFriend

Problem

Many guides hardcode the IDs of example contracts deployed on testnet. Every testnet reset wipes those contracts, so the examples fail with HostError: Error(Storage, MissingValue) until someone redeploys and updates every tab by hand. Redeploying gives new IDs, so the same fix is needed again after the next reset.

Proposal

A script to run after each testnet reset that redeploys the example contracts (increment, the auth example, the SAC admin example, and so on) from a known deployer account with a consistent salt. Contract IDs come from the deployer and the salt, so the IDs in the docs stay valid across resets.

Related, and could be handled by the same script: examples that rely on other testnet state, such as a specific ledger number or a hardcoded funded account.

Examples found while checking the #1770 language PRs
  • stellar-transaction.mdx: increment contract CBEOJUP5…KZW6
  • invoke-contract-tx-sdk.mdx: auth example contract CDOGJB…YAVR
  • error-handling.mdx and working-with-contract-specs.mdx: CA3D5K…GAXE
  • page-arguments.mdx: ledger 26478723 is past the current testnet tip
  • automate-reset-data.mdx: the hardcoded secret key's account is never funded
  • custom-sac-admin.mdx: the deployed example admin contract

Activity

  1. stellar-doxie commented on Nov 13, 2026

    @stellar-doxie
    Contributor

    🤖 Automated message from the Stellar Triage Bot.

    I saw this issue. Nobody called me in, so I am not working it.

    How to reach me:

    • Anyone with write permission can call me in: comment /triage, add the bot:take label, or assign @kaankacar, @ElliotFriend or @wmendes.
    • The issue author can send me away with /triage stop. People with write permission can also add the bot:hands-off label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions