pub const MAX_RUNTIME_MODULE_CODE_SECTION_SIZE: usize = 1_048_576;Expand description
Maximum size in bytes of the code section of a smart contract. Compilation is not metered and its cost grows with it. The largest on mainnet and buildnet is 132,200 bytes (ledgers of 2026-09-25 and 2026-11-10).