Errors/Chain errors

CodeRejected

Check the argument values against the operation schema

View as Markdown

The uploaded WASM failed validation, most often because it imports a host API the node does not support, e.g. newer ink! against an older node. Rerun the node with -lruntime::contracts=debug to see the detailed rejection reason.

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

Remediation

Check the argument values against the operation schema

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