# ContractTrapped (/docs/errors/chain/ContractTrapped)

The contract aborted with a WASM trap, e.g. a panic, unreachable instruction, or memory violation, instead of returning normally. Dry-run the call with debug messages enabled and check the input data against the contract's expectations.

Declared by the `Contracts` pallet; it classifies to the semantic code [`internal`](/docs/errors/internal).

## Remediation [#remediation]

A chain-side invariant failed; nothing to fix client-side — report it if it persists

The same explanation is available in the terminal: `btcli explain ContractTrapped`.
