MAX_RUNTIME_MODULE_LOCALS

Constant MAX_RUNTIME_MODULE_LOCALS 

Source
pub const MAX_RUNTIME_MODULE_LOCALS: usize = 20_000;
Expand description

Maximum total number of locals declared by the functions of a smart contract (parameters excluded). Compilation is not metered and its cost grows with it. The largest total on mainnet and buildnet is 1,267 (ledgers of 2026-09-25 and 2026-11-10).