Validate a contract
Clarinet provides syntax and semantics checkers for the smart contract language Clarity.
Validate the syntax and semantics of your contracts:
Terminal
$clarinet check$clarinet check path/to/my-contract.clar
This command uses the Clarinet.toml
file to locate and analyze all the contracts in the project. If the Clarity code is valid, the command will indicate success with the response below.
Note
The clarinet check
command may also report warnings indicating the code is valid.