ContractTrapped

Error v334 → current 29.12

The contract execution trapped (crashed) during execution.

Encountered by: developers

Why This Error Exists

The contract crashed. Debug your contract code to find and fix the issue.

From Chain Metadata

Contract trapped during execution.

What This Means

The contract execution trapped (crashed) during execution.

Common Causes

  • Contract panic/abort called
  • Unreachable code reached
  • Assertion failed in contract

How to Fix

  • Debug contract to find trap cause
  • Check contract logs (if debug enabled)
  • Test with known-good inputs

Runtime Info

Pallet Index
29
Error Index
12
Error Code
29.12
Runtime Version
v393