Errors/Chain errors

CodeNotFound

The referenced object is not on-chain; check the identifier

View as Markdown

No uploaded WASM binary exists under the supplied code hash. Verify the code_hash argument used in instantiation, set_code, or a delegate call, and that the code was uploaded via upload_code and not removed.

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

Remediation

The referenced object is not on-chain; check the identifier

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