E0014: malformed verb contract
A documentation block that starts with the line contract: is a structured contract, and ADR-0065 fixes its shape.
A documentation block that starts with the line contract: is a structured
contract, and ADR-0065 fixes its shape. It is a list of sections named
purpose, inputs, outputs, ownership, invariants, errors,
side_effects and abi, each written as its name and a colon on one line,
with the text below it. The parser rejects an unknown or repeated section
name, an empty section name, text before the first section, and a contract
without any section. A line opens a section only when it is not indented
relative to the contract: line; an indented line is body text, even when it
ends with a colon. A documentation block without the contract: line is
never checked this way.
Example
Fix
Use the section names from the list, once each.
Run actus explain E0014 in your terminal to read this entry offline. Browse Lexer & parser or all error codes.