Skip to content

fix(errors): drop dead ReentrantCall/3008 mapping#42

Merged
AquiGorka merged 1 commit into
mainfrom
fix/drop-reentrantcall-error
Jul 8, 2026
Merged

fix(errors): drop dead ReentrantCall/3008 mapping#42
AquiGorka merged 1 commit into
mainfrom
fix/drop-reentrantcall-error

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

What

Removes the now-dead 3008 -> ReentrantCall entry from the SDK contract-error catalog (src/error/contract-errors.ts).

Why

soroban-core removed the MOON-06 reentrancy guard (soroban-core#41) — reentrancy is forbidden by Soroban at the platform level — including dropping the ReentrantCall = 3_008 contract error variant. The SDK's 3008 -> ReentrantCall mapping is now dead (maps to a code the contract no longer defines). Removing it keeps the SDK error catalog in sync with the contract.

Changes

  • src/error/contract-errors.ts: remove the 3008 / ReentrantCall entry. No other references existed (no imports, re-exports, or tests asserted it).
  • deno.json: patch bump 0.11.1 -> 0.11.2.

Verification

  • grep -rn 'ReentrantCall\|3008' src/ -> clean (no matches).
  • deno fmt --check, deno lint, deno task test:unit all green locally.

Base = main (where this mapping lives; dev uses a different error architecture and never had it).

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

soroban-core removed the MOON-06 reentrancy guard (soroban-core#41),
including the ReentrantCall = 3008 contract error variant. Remove the
now-dead 3008 -> ReentrantCall entry from the SDK error catalog so it
stays in sync with the contract.

Patch bump 0.11.2 -> 0.11.3.
@AquiGorka AquiGorka force-pushed the fix/drop-reentrantcall-error branch from 1e0c3ae to 3e53895 Compare July 8, 2026 19:31
@AquiGorka AquiGorka merged commit 3cb23c3 into main Jul 8, 2026
2 checks passed
@AquiGorka AquiGorka deleted the fix/drop-reentrantcall-error branch July 8, 2026 19:56
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