TerminatedInConstructor
Error v334 → current 29.21Contract tried to self-destruct in its constructor.
Encountered by: developers
Why This Error Exists
Contracts can't self-destruct during construction. Fix constructor logic.
From Chain Metadata
A contract self destructed in its constructor. This can be triggered by a call to `seal_terminate`.
What This Means
Contract tried to self-destruct in its constructor.
Common Causes
- Constructor contains termination logic
- Failed condition triggers termination during init
How to Fix
- Remove termination from constructor
- Handle initialization failures differently
Runtime Info
- Pallet Index
- 29
- Error Index
- 21
- Error Code
- 29.21
- Runtime Version
- v393