GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `stellar contract extend` panics with "index out of bounds" when the extension is a no-op · Issue #2599 · stellar/stellar-cli

stellar contract extend panics with "index out of bounds" when the extension is a no-op #2599

New issue
Copy link
New issue
Copy link
Closed
#2657
Closed
stellar contract extend panics with "index out of bounds" when the extension is a no-op#2599
#2657
Copy link
Labels
bugSomething isn't working

Description

@leighmcculloch
leighmcculloch
opened on Jun 2, 2026
Issue body actions

What version are you using?

soroban-cli 26.1.0 (installed via Homebrew). The offending code is also present on main.

What did you do?

Ran stellar contract extend against a well-formed but non-existent contract ID. The transaction goes through as a no-op, then the CLI panics:

$ stellar contract extend --id CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4 --ledgers-to-extend 1
ℹ️ Simulating transaction…
ℹ️ Signing transaction: decde71f91ef2ce9d89a56fb2d9d4a2725b6034e6efc853a73e924d5d7130313
🌎 Sending transaction…
✅ Transaction submitted successfully!
🔗 https://stellar.expert/explorer/testnet/tx/decde71f91ef2ce9d89a56fb2d9d4a2725b6034e6efc853a73e924d5d7130313
ℹ️ No changes detected, transaction was a no-op.

thread 'main' (12110178) panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-1949cf8c6b5b557f/soroban-cli-26.1.0/src/commands/contract/extend.rs:288:42:
index out of bounds: the len is 0 but the index is 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
❌

The same crash occurs when attempting to extend any entry that doesn't exist.

What did you expect to see?

A clean error or message indicating the entry does not exist / nothing was extended, with a non-panic exit.

What did you see instead?

The CLI panicked with index out of bounds: the len is 0 but the index is 0 at src/commands/contract/extend.rs:288:42 and exited with a failure code.

Activity

  1. leighmcculloch
    added
    bugSomething isn't working
    on Jun 2, 2026
  2. github-project-automation
    added this to DevXon Jun 2, 2026
  3. github-project-automation
    moved this to Backlog (Not Ready) in DevXon Jun 2, 2026
  4. janewang
    moved this from Backlog (Not Ready) to Todo (Ready for Dev) in DevXon Jun 18, 2026
  5. fnando
    closed this as completedin #2657on Jul 27, 2026
  6. github-project-automation
    moved this from Todo (Ready for Dev) to Done in DevXon Jul 27, 2026
  7. leighmcculloch
    added a commit that references this issue on Jul 28, 2026

    Fix `contract restore` panic when restoring a missing entry (#2660)

    0c32ac8
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

    bugSomething isn't working

    Type

    No type

    Projects

    • DevX
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.