Skip to main content

CONTRACT_TOP_LEVEL_FIELDS

Constant CONTRACT_TOP_LEVEL_FIELDS 

Source
pub const CONTRACT_TOP_LEVEL_FIELDS: [&str; 16];
Expand description

Every top-level key Contract deserializes, in declaration order.

This list is the allow-list SCHEMA-019 checks near-misses against, and it is pinned to the struct by contract_fields_match_struct in types_tests.rs: adding a field to Contract without adding it here turns the new block into a “near-miss of itself” and fails that test.