Description
CONTRIBUTING.md does not explain how to add a new error variant to ContractError in contracts/split/src/error.rs. New contributors often append variants without checking the stability note ("Discriminants are stable — never reorder, only append"). A dedicated section in CONTRIBUTING.md would prevent breaking changes.
Acceptance Criteria
Context
- Target file:
CONTRIBUTING.md
- Reference:
contracts/split/src/error.rs — stability comment on line 3
Description
CONTRIBUTING.mddoes not explain how to add a new error variant toContractErrorincontracts/split/src/error.rs. New contributors often append variants without checking the stability note ("Discriminants are stable — never reorder, only append"). A dedicated section inCONTRIBUTING.mdwould prevent breaking changes.Acceptance Criteria
CONTRIBUTING.mdcargo testpasses (no code changes, only docs)Context
CONTRIBUTING.mdcontracts/split/src/error.rs— stability comment on line 3