Errors/Chain errors

CodeTooLarge

A chain-side capacity limit was hit; reduce the size or count of the request

View as Markdown

The code blob passed to instantiate_with_code or upload_code exceeds the maximum code length in the pallet's schedule. Compare the WASM binary size against the schedule's code length limit and shrink the contract.

Declared by the Contracts pallet; it classifies to the semantic code limit_exceeded.

Remediation

A chain-side capacity limit was hit; reduce the size or count of the request

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