TerminatedWhileReentrant
Error v334 → current 29.14Contract was terminated during a reentrant call .
Encountered by: developers
Why This Error Exists
Complex termination-during-call scenario. Redesign to avoid this pattern.
From Chain Metadata
Termination of a contract is not allowed while the contract is already on the call stack. Can be triggered by `seal_terminate`.
What This Means
Contract was terminated during a reentrant call.
Common Causes
- Contract self-destructed while another call was in progress
- Reentrancy led to unexpected termination
How to Fix
- Avoid self-destruction in reentrant contexts
- Use reentrancy guards
- Restructure contract logic
Runtime Info
- Pallet Index
- 29
- Error Index
- 14
- Error Code
- 29.14
- Runtime Version
- v393