Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Testnet smart contracts crashing with Error(Storage, MissingValue) #886

Closed as not planned

Description

@dantecorvid

Context

A developer integrating with the DeFindex API on testnet is experiencing a crash when attempting to interact with the vault contracts (specifically CC24OISYJHWXZIFZBRJHFLVO5CNN3PQSKZE5BBBZLSSI5Z23TKC6GQY2).

Current state

Any call to the testnet smart contracts, such as deposit or even just reading the balance with get_assets, results in an immediate crash of the virtual machine.

The error log reported is:

Simulation error: HostError: Error(Storage, MissingValue)

Event log (newest first):
   0: [Diagnostic Event] topics:[error, Error(Storage, MissingValue)], data:"trying to get non-existing value for contract instance"
   1: [Diagnostic Event] topics:[fn_call, CC24OISYJHWXZIFZBRJHFLVO5CNN3PQSKZE5BBBZLSSI5Z23TKC6GQY2, deposit], data:[[100000000], [99000000]... 

The AI assistant helping the developer concluded that the transaction payload itself is correct (as evidenced by a returned XDR), but the testnet contracts are currently inoperable due to an empty/uninitialized internal database. Currently, only Mainnet contracts appear to be operational.

Desired state

The testnet contracts should be fully initialized and operational so developers can successfully test their integrations without encountering Error(Storage, MissingValue).

Constraints

  • Ensure testnet deployments mirror mainnet initialization state correctly.
  • Document any specific testnet-only setup steps if developers need to initialize their own test vaults.

Acceptance

  • Testnet contracts are redeployed/re-initialized and no longer throw MissingValue.
  • A successful deposit transaction can be simulated on the testnet contract.

@claude please pick this up. Before changing anything:

  • Read CLAUDE.md at the repo root, plus any nested CLAUDE.md in the directories you'll touch. Follow its conventions.
  • Match existing patterns in the codebase. Don't invent new ones.
  • Run lint and tests before opening the PR.

Activity

  1. yripper commented on Jun 24, 2026

    @yripper
    Collaborator

    The contract mentioned CC24OISYJHWXZIFZBRJHFLVO5CNN3PQSKZE5BBBZLSSI5Z23TKC6GQY2 is live on mainnet, he is trying to fetch information from testnet.

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions