MaxCallDepthReached

Error v334 → current 29.5

Contract call depth exceeded the maximum allowed nesting level.

Encountered by: developers

Why This Error Exists

Call depth limits prevent stack overflow and resource exhaustion. Redesign your contract interactions to stay within limits.

From Chain Metadata

Performing a call was denied because the calling depth reached the limit of what is specified in the schedule.

What This Means

Contract call depth exceeded the maximum allowed nesting level.

Common Causes

  • Too many nested contract-to-contract calls
  • Recursive contract calls without proper limits

How to Fix

  • Reduce call nesting depth
  • Refactor contract architecture to flatten call hierarchy
  • Use state patterns instead of deep call chains

Runtime Info

Pallet Index
29
Error Index
5
Error Code
29.5
Runtime Version
v393